Skip to content
Snippets Groups Projects
Commit b08a9271 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix sql migration

parent 9b0a07dd
No related branches found
No related tags found
1 merge request!1113Resolve "[3.0] Move Room from Chronos to Core"
Pipeline #103517 canceled
......@@ -47,8 +47,7 @@ class Migration(migrations.Migration):
migrations.RunSQL(
"""
-- Use a temporary, empty source table in case Chronos is not installed
CREATE TEMPORARY TABLE IF NOT EXISTS chronos_room (LIKE core_room);
INSERT INTO core_room SELECT * FROM chronos_room;
DO $$BEGIN INSERT INTO core_room SELECT * FROM chronos_room; EXCEPTION WHEN undefined_table THEN NULL; END$$;
"""
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment