From 4b3f3603cccfd4a849bda0f56f99439de3cdd20d Mon Sep 17 00:00:00 2001 From: j3s Date: Mon, 1 Feb 2021 12:27:22 -0600 Subject: [PATCH] CoreOS isnt ready --- capsulflask/db.py | 2 +- capsulflask/schema_migrations/14_down_coreos_notready.sql | 3 +++ capsulflask/schema_migrations/14_up_cores_notready.sql | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 capsulflask/schema_migrations/14_down_coreos_notready.sql create mode 100644 capsulflask/schema_migrations/14_up_cores_notready.sql 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;