Skip to content

Commit a930cf4

Browse files
authored
fix: templates created_by migration (#4838)
1 parent 9d1d0bc commit a930cf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
BEGIN;
2-
ALTER TABLE template_versions ALTER COLUMN created_by SET NOT NULL;
3-
UPDATE template_versions SET created_by = '00000000-0000-0000-0000-000000000000'::uuid WHERE created_by IS NULL;
2+
3+
UPDATE template_versions SET created_by = '00000000-0000-0000-0000-000000000000'::uuid WHERE created_by IS NULL;
4+
ALTER TABLE template_versions ALTER COLUMN created_by SET NOT NULL;
5+
46
COMMIT;

0 commit comments

Comments
 (0)