forked from 3wordchant/capsul-flask
Add Alpine 3.13
This commit is contained in:
parent
74621a85dd
commit
1c2d5cf605
@ -40,7 +40,7 @@ def init_app(app):
|
|||||||
hasSchemaVersionTable = False
|
hasSchemaVersionTable = False
|
||||||
actionWasTaken = False
|
actionWasTaken = False
|
||||||
schemaVersion = 0
|
schemaVersion = 0
|
||||||
desiredSchemaVersion = 10
|
desiredSchemaVersion = 11
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
|
5
capsulflask/schema_migrations/11_down_alpine_3.13.sql
Normal file
5
capsulflask/schema_migrations/11_down_alpine_3.13.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
DELETE FROM os_images WHERE id = 'alpine313';
|
||||||
|
|
||||||
|
UPDATE os_images SET deprecated = FALSE WHERE id = 'alpine312';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 10;
|
6
capsulflask/schema_migrations/11_up_alpine_3.13.sql
Normal file
6
capsulflask/schema_migrations/11_up_alpine_3.13.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
|
||||||
|
VALUES ('alpine313', 'alpine/3.13/root.img.qcow2', 'Alpine Linux 3.13', FALSE);
|
||||||
|
|
||||||
|
UPDATE os_images SET deprecated = TRUE WHERE id = 'alpine312';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 11;
|
Loading…
Reference in New Issue
Block a user