forked from mtusi2026/mtusi2026lab7
на оценку 4
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE attachment_jobs
|
||||
DROP CONSTRAINT attachment_jobs_status_supported,
|
||||
ADD CONSTRAINT attachment_jobs_status_supported
|
||||
CHECK (status IN ('queued', 'processing', 'succeeded', 'failed', 'superseded'));
|
||||
|
||||
ALTER TABLE attachment_job_events
|
||||
DROP CONSTRAINT attachment_job_events_type_supported,
|
||||
ADD CONSTRAINT attachment_job_events_type_supported CHECK (
|
||||
event_type IN ('retry_scheduled', 'lease_recovered', 'operator_replay',
|
||||
'permanent_failure', 'completed', 'version_upgrade', 'superseded')
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user