added new type to sql

This commit is contained in:
pasha1coil 2025-07-07 15:29:41 +03:00
parent 0ad481f2ad
commit 1383dbaa3a
3 changed files with 11 additions and 0 deletions

@ -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