RainLab Builder - join table variations

Hi everybody,
Working with Rainlab Plugin Builder after some days I see these under plugin updates folder:

builder_table_create_author_plugin_mytab.php
builder_table_update_author_plugin_mytab_10.php
builder_table_update_author_plugin_mytab_11.php
builder_table_update_author_plugin_mytab_12.php
builder_table_update_author_plugin_mytab_2.php
builder_table_update_author_plugin_mytab_3.php
builder_table_update_author_plugin_mytab_4.php
builder_table_update_author_plugin_mytab_5.php
builder_table_update_author_plugin_mytab_6.php
builder_table_update_author_plugin_mytab_7.php
builder_table_update_author_plugin_mytab_8.php
builder_table_update_author_plugin_mytab_9.php

I understand the great functionality that allow me to come back…
Anyway, it is possible to join all these variations ?
Thank you!

C.

If you are the only one using your plugin right now and looking to clean it, you can:

  1. Open your database and get the current structure of author_plugin_mytab
  2. In builder_table_create_author_plugin_mytab.php, make the necessary adjustment to reflect your actual table
  3. Update system_plugin_versions (downgrade you current version) and system_plugin_history
  4. Delete your table
  5. Run php artisan october:migrate again
2 Likes