Skip to content

Commit

Permalink
DEV: Promote historic post_deploy migrations (discourse#16288)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
davidtaylorhq authored Mar 25, 2022
1 parent 9ce6280 commit f3aab19
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/promote_migrations
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3aab19

Please sign in to comment.