DEV: Promote historic post_deploy migrations (#19492)

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

This commit includes a fix to the promote_migrations script to promote
all migrations of the first version of the previous stable version. For
example, if the current stable version is v2.8.13, the version used as
a cutoff for promoting migrations is v2.8.0.
This commit is contained in:
Bianca Nenciu 2022-12-16 13:36:30 +02:00 committed by GitHub
parent 0ee050e208
commit c358151a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ puts "Current stable version is #{current_stable_version}"
minor = current_stable_version[/^(v\d+\.\d+)\./, 1] minor = current_stable_version[/^(v\d+\.\d+)\./, 1]
previous_stable_version = previous_stable_version = "#{minor}.0"
run "git describe --abbrev=0 --match 'v*' --exclude '#{minor}*' origin/stable"
puts "Previous stable version is #{previous_stable_version}" puts "Previous stable version is #{previous_stable_version}"
stable_post_migrate_filenames = stable_post_migrate_filenames =