mirror of
https://github.com/discourse/discourse.git
synced 2025-09-03 08:39:21 +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
10 changed files with 2 additions and 1 deletions
|
@ -16,12 +16,13 @@ require 'fileutils'
|
||||||
VERSION_REGEX = %r{\/(\d+)_}
|
VERSION_REGEX = %r{\/(\d+)_}
|
||||||
|
|
||||||
DRY_RUN = !!ARGV.delete('--dry-run')
|
DRY_RUN = !!ARGV.delete('--dry-run')
|
||||||
|
PLUGINS = false
|
||||||
|
|
||||||
if i = ARGV.find_index('--plugins-base')
|
if i = ARGV.find_index('--plugins-base')
|
||||||
ARGV.delete_at(i)
|
ARGV.delete_at(i)
|
||||||
PLUGINS = true
|
PLUGINS = true
|
||||||
PLUGINS_BASE = ARGV.delete_at(i)
|
PLUGINS_BASE = ARGV.delete_at(i)
|
||||||
elsif ARV.delete('--plugins')
|
elsif ARGV.delete('--plugins')
|
||||||
PLUGINS = true
|
PLUGINS = true
|
||||||
PLUGINS_BASE = 'plugins'
|
PLUGINS_BASE = 'plugins'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue