Initial commit MKD fixes
This commit is contained in:
17
backend/migrations/development_pipeline_add_analysis.sql
Executable file
17
backend/migrations/development_pipeline_add_analysis.sql
Executable file
@@ -0,0 +1,17 @@
|
||||
-- Добавляем этап «Анализ» (analysis) в воронку развития (после Входящие)
|
||||
|
||||
ALTER TABLE development_pipeline DROP CONSTRAINT IF EXISTS development_pipeline_status_check;
|
||||
|
||||
ALTER TABLE development_pipeline ADD CONSTRAINT development_pipeline_status_check
|
||||
CHECK (status IN (
|
||||
'incoming',
|
||||
'analysis',
|
||||
'agenda_approval',
|
||||
'in_person',
|
||||
'absentee',
|
||||
'protocol_formation',
|
||||
'protocol_to_gzhi',
|
||||
'gzhi_order',
|
||||
'success',
|
||||
'failure'
|
||||
));
|
||||
Reference in New Issue
Block a user