Skip to content

Commit e870667

Browse files
committed
manually default
1 parent 48267a4 commit e870667

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ provisionersdk/proto/*.go linguist-generated=true
1111
*.tfstate.json linguist-generated=true
1212
*.tfstate.dot linguist-generated=true
1313
*.tfplan.dot linguist-generated=true
14+
site/e2e/provisionerGenerated.ts linguist-generated=true
1415
site/src/api/typesGenerated.ts linguist-generated=true
1516
site/src/pages/SetupPage/countries.tsx linguist-generated=true

coderd/database/migrations/000190_external_auth_providers_jsonb.up.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ ALTER TABLE template_versions
2727

2828

2929
-- Make the column non-nullable to make the types nicer on the Go side
30+
UPDATE template_versions
31+
SET external_auth_providers = '[]'::jsonb
32+
WHERE external_auth_providers IS NULL;
3033
ALTER TABLE template_versions
3134
ALTER COLUMN external_auth_providers SET DEFAULT '[]'::jsonb;
3235
ALTER TABLE template_versions

0 commit comments

Comments
 (0)