Add nixOS to supported operating systems #40
3 changed files with 8 additions and 1 deletions
|
@ -50,7 +50,7 @@ def init_app(app, is_running_server):
|
||||||
hasSchemaVersionTable = False
|
hasSchemaVersionTable = False
|
||||||
actionWasTaken = False
|
actionWasTaken = False
|
||||||
schemaVersion = 0
|
schemaVersion = 0
|
||||||
desiredSchemaVersion = 24
|
desiredSchemaVersion = 25
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
|
|
3
capsulflask/schema_migrations/25_down_nixos.sql
Normal file
3
capsulflask/schema_migrations/25_down_nixos.sql
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
DELETE FROM os_images WHERE id = 'nixos';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 24;
|
4
capsulflask/schema_migrations/25_up_nixos.sql
Normal file
4
capsulflask/schema_migrations/25_up_nixos.sql
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
|
||||||
|
VALUES ('nixos', 'nixos/22.05/root.img.qcow2', 'NixOS 22.05', FALSE);
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 25;
|
Loading…
Reference in a new issue