Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from josephschorr/joseph.schorr/PROJQUAY-185/…
…remove-enc-token Remove the active migration for encrypted tokens now that it is complete
- Loading branch information
Showing
18 changed files
with
25 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
from enum import Enum, unique | ||
from data.migrationutil import DefinedDataMigration, MigrationPhase | ||
|
||
|
||
@unique | ||
class ERTMigrationFlags(Enum): | ||
""" Flags for the encrypted robot token migration. """ | ||
|
||
READ_OLD_FIELDS = "read-old" | ||
WRITE_OLD_FIELDS = "write-old" | ||
|
||
|
||
ActiveDataMigration = DefinedDataMigration( | ||
"encrypted_robot_tokens", | ||
"ENCRYPTED_ROBOT_TOKEN_MIGRATION_PHASE", | ||
[ | ||
MigrationPhase( | ||
"add-new-fields", | ||
"c13c8052f7a6", | ||
[ERTMigrationFlags.READ_OLD_FIELDS, ERTMigrationFlags.WRITE_OLD_FIELDS], | ||
), | ||
MigrationPhase( | ||
"backfill-then-read-only-new", "703298a825c2", [ERTMigrationFlags.WRITE_OLD_FIELDS] | ||
), | ||
MigrationPhase( | ||
"change-column-types", "49e1138ed12d", [ERTMigrationFlags.WRITE_OLD_FIELDS], | ||
), | ||
MigrationPhase("stop-writing-both", "49e1138ed12d", []), | ||
MigrationPhase("remove-old-fields", "c059b952ed76", []), | ||
], | ||
) | ||
ActiveDataMigration = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.