diff --git a/dal/schema/000027_init.down.sql b/dal/schema/000027_init.down.sql new file mode 100644 index 0000000..e69de29 diff --git a/dal/schema/000027_init.up.sql b/dal/schema/000027_init.up.sql new file mode 100644 index 0000000..93ec09b --- /dev/null +++ b/dal/schema/000027_init.up.sql @@ -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 $$; \ No newline at end of file diff --git a/sqlc.yaml b/sqlc.yaml index 103e173..05ffa7e 100644 --- a/sqlc.yaml +++ b/sqlc.yaml @@ -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