18 lines
434 B
SQL
18 lines
434 B
SQL
-- Migration: Update job status workflow
|
|
-- Description: Allow extended workflow statuses for moderation and lifecycle
|
|
|
|
ALTER TABLE jobs DROP CONSTRAINT IF EXISTS jobs_status_check;
|
|
|
|
ALTER TABLE jobs
|
|
ADD CONSTRAINT jobs_status_check
|
|
CHECK (status IN (
|
|
'open',
|
|
'closed',
|
|
'draft',
|
|
'review',
|
|
'published',
|
|
'paused',
|
|
'expired',
|
|
'archived',
|
|
'reported'
|
|
));
|