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:
parent
9ce6280f51
commit
f3aab19829
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue