correctly merge db migrations with origin master (coreos)

This commit is contained in:
forest 2021-02-15 19:19:20 -06:00
commit 534855c764
7 changed files with 14 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def init_app(app):
hasSchemaVersionTable = False
actionWasTaken = False
schemaVersion = 0
desiredSchemaVersion = 13
desiredSchemaVersion = 15
cursor = connection.cursor()

View File

@ -0,0 +1,3 @@
DELETE FROM os_images WHERE id = 'coreos';
UPDATE schemaversion SET version = 12;

View File

@ -0,0 +1,4 @@
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
VALUES ('coreos', 'coreos/stable/root.img.qcow2', 'Fedora CoreOS Stable', FALSE);
UPDATE schemaversion SET version = 13;

View File

@ -0,0 +1,3 @@
UPDATE os_images SET deprecated = FALSE WHERE id = 'coreos';
UPDATE schemaversion SET version = 13;

View File

@ -0,0 +1,3 @@
UPDATE os_images SET deprecated = TRUE WHERE id = 'coreos';
UPDATE schemaversion SET version = 14;