vm-selector/db/migrations/20260923101500_add_cs_477_vm.sql
Antoine Pelletier 1f0a037723
All checks were successful
build / image (push) Successful in 49s
feat: add new VM
2026-09-23 10:21:51 +02:00

11 lines
456 B
SQL

-- migrate:up
-- Third VM: an Ubuntu server guest. Like the others it is configuration, not
-- demo data, so a fresh deployment shows it without manual seeding.
--
-- `domain` must match the libvirt domain name exactly (`virsh list --all`).
INSERT INTO vms ("domain", "display_name", "icon", "position") VALUES
('cs-477', 'CS-477 Advanced OS', 'server', 3)
ON CONFLICT ("domain") DO NOTHING;
-- migrate:down
DELETE FROM vms WHERE "domain" = 'cs-477';