FIX: Remove templates de abertura re-inseridos pela migration 011 a cada deploy
All checks were successful
Deploy Dev / Deploy para VM Dev (push) Successful in 7s
All checks were successful
Deploy Dev / Deploy para VM Dev (push) Successful in 7s
This commit is contained in:
parent
3796c89045
commit
dcb3a89e26
18
database/migrations/030_remove_opening_templates.sql
Normal file
18
database/migrations/030_remove_opening_templates.sql
Normal file
@ -0,0 +1,18 @@
|
||||
-- Migration 030: Remove templates de abertura sem vinculo com a Meta
|
||||
-- A migration 011 re-insere esses templates em todo deploy via ON CONFLICT DO UPDATE.
|
||||
-- Este arquivo garante que sejam removidos caso nao estejam vinculados a Meta.
|
||||
|
||||
DELETE FROM whatsapp_templates
|
||||
WHERE name IN (
|
||||
'abertura_atendimento_padrao',
|
||||
'abertura_retorno_contato',
|
||||
'abertura_suporte',
|
||||
'abertura_financeiro',
|
||||
'abertura_comercial',
|
||||
'abertura_confirmacao_dados',
|
||||
'abertura_contato_agendado',
|
||||
'abertura_pos_atendimento',
|
||||
'abertura_aviso_importante',
|
||||
'abertura_contato_inicial'
|
||||
)
|
||||
AND meta_template_name IS NULL;
|
||||
Loading…
Reference in New Issue
Block a user