From 3dc19344c07ae0f41084ebfe2fbb3e9a2e449a20 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 11 Dec 2019 16:07:36 -0800 Subject: [PATCH] renumber-migrations: Exclude migration 0209. Otherwise, this tries to renumber the already merged duplicate 0209s, which isn't helpful. --- tools/renumber-migrations | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/renumber-migrations b/tools/renumber-migrations index 0767af61f9..f91ba94111 100755 --- a/tools/renumber-migrations +++ b/tools/renumber-migrations @@ -64,7 +64,10 @@ if __name__ == '__main__': for file in file_index: migration_number = file[0:4] counter = file_index.count(migration_number) - if counter > 1 and file[0:4] not in stack: + + # There are 2 migrations 0209 because of a security + # release requiring a migration. + if counter > 1 and file[0:4] not in stack and migration_number != "0209": conflicts += [file_name for file_name in files_list if file_name.startswith(migration_number)] stack.append(migration_number)