diff --git a/capsulflask/db.py b/capsulflask/db.py index a75663f..411678b 100644 --- a/capsulflask/db.py +++ b/capsulflask/db.py @@ -42,7 +42,7 @@ def init_app(app): hasSchemaVersionTable = False actionWasTaken = False schemaVersion = 0 - desiredSchemaVersion = 13 + desiredSchemaVersion = 14 cursor = connection.cursor() diff --git a/capsulflask/schema_migrations/14_down_coreos_notready.sql b/capsulflask/schema_migrations/14_down_coreos_notready.sql new file mode 100644 index 0000000..0edd12b --- /dev/null +++ b/capsulflask/schema_migrations/14_down_coreos_notready.sql @@ -0,0 +1,3 @@ +UPDATE os_images SET deprecated = FALSE WHERE id = 'coreos'; + +UPDATE schemaversion SET version = 13; diff --git a/capsulflask/schema_migrations/14_up_cores_notready.sql b/capsulflask/schema_migrations/14_up_cores_notready.sql new file mode 100644 index 0000000..539d09c --- /dev/null +++ b/capsulflask/schema_migrations/14_up_cores_notready.sql @@ -0,0 +1,3 @@ +UPDATE os_images SET deprecated = TRUE WHERE id = 'coreos'; + +UPDATE schemaversion SET version = 14;