Files
MikrotikManager/backend/drizzle/0009_alert_outbox_resolution.sql
T

5 lines
223 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;