A platform for community discussion. Free, open, simple.
DEV: Promote historic post_deploy migrations (#16288)
David Taylorf3aab198290f
diff --git a/db/post_migrate/20210125100452_migrate_search_data_after_default_locale_rename.rb b/db/migrate/20210125100452_migrate_search_data_after_default_locale_rename.rbsimilarity index 100%rename from db/post_migrate/20210125100452_migrate_search_data_after_default_locale_rename.rbrename to db/migrate/20210125100452_migrate_search_data_after_default_locale_rename.rbdiff --git a/db/post_migrate/20210127140730_undo_add_processed_to_notifications.rb b/db/migrate/20210127140730_undo_add_processed_to_notifications.rbsimilarity index 100%rename from db/post_migrate/20210127140730_undo_add_processed_to_notifications.rbrename to db/migrate/20210127140730_undo_add_processed_to_notifications.rbdiff --git a/db/post_migrate/20210207232853_fix_topic_timer_duration_minutes.rb b/db/migrate/20210207232853_fix_topic_timer_duration_minutes.rbsimilarity index 100%rename from db/post_migrate/20210207232853_fix_topic_timer_duration_minutes.rbrename to db/migrate/20210207232853_fix_topic_timer_duration_minutes.rbdiff --git a/db/post_migrate/20210215231312_fix_group_flair_avatar_upload_security_and_acls.rb b/db/migrate/20210215231312_fix_group_flair_avatar_upload_security_and_acls.rbsimilarity index 100%rename from db/post_migrate/20210215231312_fix_group_flair_avatar_upload_security_and_acls.rbrename to db/migrate/20210215231312_fix_group_flair_avatar_upload_security_and_acls.rbdiff --git a/db/post_migrate/20210218022739_move_new_since_to_new_table_again.rb b/db/migrate/20210218022739_move_new_since_to_new_table_again.rbsimilarity index 100%rename from db/post_migrate/20210218022739_move_new_since_to_new_table_again.rbrename to db/migrate/20210218022739_move_new_since_to_new_table_again.rbdiff --git a/db/post_migrate/20210219171329_drop_old_sso_site_settings.rb b/db/migrate/20210219171329_drop_old_sso_site_settings.rbsimilarity index 100%rename from db/post_migrate/20210219171329_drop_old_sso_site_settings.rbrename to db/migrate/20210219171329_drop_old_sso_site_settings.rbdiff --git a/db/post_migrate/20210302164429_drop_flash_onebox_site_setting.rb b/db/migrate/20210302164429_drop_flash_onebox_site_setting.rbsimilarity index 100%rename from db/post_migrate/20210302164429_drop_flash_onebox_site_setting.rbrename to db/migrate/20210302164429_drop_flash_onebox_site_setting.rbdiff --git a/db/post_migrate/20210324043327_delete_orphan_post_revisions.rb b/db/migrate/20210324043327_delete_orphan_post_revisions.rbsimilarity index 100%rename from db/post_migrate/20210324043327_delete_orphan_post_revisions.rbrename to db/migrate/20210324043327_delete_orphan_post_revisions.rbdiff --git a/db/post_migrate/20210328233843_fix_bookmarks_with_incorrect_topic_id.rb b/db/migrate/20210328233843_fix_bookmarks_with_incorrect_topic_id.rbsimilarity index 100%rename from db/post_migrate/20210328233843_fix_bookmarks_with_incorrect_topic_id.rbrename to db/migrate/20210328233843_fix_bookmarks_with_incorrect_topic_id.rbdiff --git a/script/promote_migrations b/script/promote_migrationsindex 5dea7f00900..be247a90839 100755--- a/script/promote_migrations+++ b/script/promote_migrations@@ -16,12 +16,13 @@ require 'fileutils'VERSION_REGEX = %r{\/(\d+)_}DRY_RUN = !!ARGV.delete('--dry-run')+PLUGINS = falseif i = ARGV.find_index('--plugins-base')ARGV.delete_at(i)PLUGINS = truePLUGINS_BASE = ARGV.delete_at(i)-elsif ARV.delete('--plugins')+elsif ARGV.delete('--plugins')PLUGINS = truePLUGINS_BASE = 'plugins'end