Skip to content

Commit ebb716d

Browse files
committed
complete down migration
1 parent 1c57bd2 commit ebb716d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DROP FUNCTION IF EXISTS tags_compatible(jsonb, jsonb);
1+
DROP FUNCTION IF EXISTS tags_compatible(tags, tags);
22

33
DROP DOMAIN IF EXISTS tags;

coderd/database/migrations/000274_check_tags.up.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- We need this as a type alias to ensure that we can override it in sqlc.
2+
-- We need to override it in sqlc so that it can be recognised as a StringMap.
3+
-- Without this zero values for other inferred types cause json syntax errors.
14
CREATE DOMAIN tags AS jsonb;
25

36
CREATE OR REPLACE FUNCTION tags_compatible(subset_tags tags, superset_tags tags)

0 commit comments

Comments
 (0)