mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: templates created_by migration (#4838)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
BEGIN;
|
||||
ALTER TABLE template_versions ALTER COLUMN created_by SET NOT NULL;
|
||||
UPDATE template_versions SET created_by = '00000000-0000-0000-0000-000000000000'::uuid WHERE created_by IS NULL;
|
||||
|
||||
UPDATE template_versions SET created_by = '00000000-0000-0000-0000-000000000000'::uuid WHERE created_by IS NULL;
|
||||
ALTER TABLE template_versions ALTER COLUMN created_by SET NOT NULL;
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user