mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:42:16 +08:00
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
Block a user