mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 14:49:07 +08:00
e76c583b91
Having a large number of post-deploy migrations running out-of-numerical-sequence with pre-deploy migrations can be problematic. For example, if we have the sequence - db/migrate/2017... - add column - db/post_migrate/2018... - drop the column - db/migrate/2021... - add the same column again It will work fine in numerical order. But if you run the pre-deploy migrations **followed by** the post-deploy migrations, you will not get the same result. Our post-deploy system is designed to allow for seamless upgrades of Discourse. However, it is reasonable for us to only support this totally seamless experience for a limited period of time. This commit moves all post_deploy migrations which are more than 1 year old (i.e. more than 2 major Discourse versions ago) into the regular pre-deploy migrations directory. This limits the impact of any edge cases caused by out-of-numerical-sequence migrations. |
||
---|---|---|
.. | ||
20200715045152_remove_bookmarks_delete_when_reminder_sent.rb | ||
20200724060632_remove_deprecated_allowlist_settings.rb | ||
20200728004302_drop_path_whitelist_from_embeddable_hosts.rb | ||
20200818084329_update_private_message_on_post_search_data.rb | ||
20200903045539_add_index_topics_on_timestamps_private.rb | ||
20201110110952_drop_github_user_infos.rb | ||
20210125100452_migrate_search_data_after_default_locale_rename.rb | ||
20210127140730_undo_add_processed_to_notifications.rb | ||
20210207232853_fix_topic_timer_duration_minutes.rb | ||
20210215231312_fix_group_flair_avatar_upload_security_and_acls.rb | ||
20210218022739_move_new_since_to_new_table_again.rb | ||
20210219171329_drop_old_sso_site_settings.rb | ||
20210302164429_drop_flash_onebox_site_setting.rb | ||
20210324043327_delete_orphan_post_revisions.rb | ||
20210328233843_fix_bookmarks_with_incorrect_topic_id.rb | ||
20210513125608_remove_length_constrain_from_topic_excerpt.rb | ||
20210525112226_remove_length_constrain_from_topic_link_url.rb | ||
20210528003603_fix_badge_image_avatar_upload_security_and_acls.rb |