11 lines
375 B
SQL
11 lines
375 B
SQL
-- Migration 145: Add start date to SAG for email-driven case creation flow
|
|
|
|
ALTER TABLE sag_sager
|
|
ADD COLUMN IF NOT EXISTS start_date DATE;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_sag_sager_start_date
|
|
ON sag_sager(start_date)
|
|
WHERE deleted_at IS NULL;
|
|
|
|
COMMENT ON COLUMN sag_sager.start_date IS 'Planned start date for case execution (used by email-to-case workflow).';
|