zapier_postbacks #26
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 $$;
|
@ -344,12 +344,14 @@ const (
|
||||
LeadTargetEmail LeadTargetType = "mail"
|
||||
LeadTargetTg LeadTargetType = "telegram"
|
||||
LeadTargetWhatsapp LeadTargetType = "whatsapp"
|
||||
LeadTargetWebhook LeadTargetType = "webhook"
|
||||
)
|
||||
|
||||
var ValidLeadTargetTypes = map[string]bool{
|
||||
"mail": true,
|
||||
"telegram": true,
|
||||
"whatsapp": true,
|
||||
"webhook": true,
|
||||
}
|
||||
|
||||
type QuizUTM struct {
|
||||
|
@ -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