added new type to sql
This commit is contained in:
parent
0ad481f2ad
commit
1383dbaa3a
0
dal/schema/000027_init.down.sql
Normal file
0
dal/schema/000027_init.down.sql
Normal file
9
dal/schema/000027_init.up.sql
Normal file
9
dal/schema/000027_init.up.sql
Normal file
@ -0,0 +1,9 @@
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM pg_enum
|
||||
WHERE enumlabel = 'webhook' AND enumtypid = 'leadtargettype'::regtype
|
||||
) THEN
|
||||
ALTER TYPE quiz_status ADD VALUE 'webhook';
|
||||
END IF;
|
||||
END $$;
|
@ -54,6 +54,8 @@ packages:
|
||||
- "./dal/schema/000025_init.down.sql"
|
||||
- "./dal/schema/000026_init.up.sql"
|
||||
- "./dal/schema/000026_init.down.sql"
|
||||
- "./dal/schema/000027_init.up.sql"
|
||||
- "./dal/schema/000027_init.down.sql"
|
||||
engine: "postgresql"
|
||||
emit_json_tags: true
|
||||
emit_db_tags: true
|
||||
|
Loading…
Reference in New Issue
Block a user