DEV: Promote historic post_deploy migrations (#16288)

This commit promotes all post_deploy migrations which existed in Discourse v2.7.13 (timestamp <= 20210328233843)

This reduces the likelihood of issues relating to migration run order

Also fixes a couple of typos in `script/promote_migrations`
This commit is contained in:
David Taylor 2022-03-25 15:48:20 +00:00 committed by GitHub
parent 9ce6280f51
commit f3aab19829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 2 additions and 1 deletions

View File

@ -16,12 +16,13 @@ require 'fileutils'
VERSION_REGEX = %r{\/(\d+)_}
DRY_RUN = !!ARGV.delete('--dry-run')
PLUGINS = false
if i = ARGV.find_index('--plugins-base')
ARGV.delete_at(i)
PLUGINS = true
PLUGINS_BASE = ARGV.delete_at(i)
elsif ARV.delete('--plugins')
elsif ARGV.delete('--plugins')
PLUGINS = true
PLUGINS_BASE = 'plugins'
end