5 lines
227 B
PL/PgSQL
5 lines
227 B
PL/PgSQL
BEGIN;
|
|
ALTER TABLE alert_outbox ADD COLUMN IF NOT EXISTS resolution_version integer NOT NULL DEFAULT 0;
|
|
ALTER TABLE alert_outbox ADD CONSTRAINT alert_outbox_resolution_version_check CHECK (resolution_version >= 0);
|
|
COMMIT;
|