diff --git a/cmd/setup/13/13_fix_quota_constraints.sql b/cmd/setup/13/13_fix_quota_constraints.sql index 7acae459336..d1f95d74ab1 100644 --- a/cmd/setup/13/13_fix_quota_constraints.sql +++ b/cmd/setup/13/13_fix_quota_constraints.sql @@ -1,4 +1,4 @@ -ALTER TABLE projections.quotas ALTER COLUMN from_anchor DROP NOT NULL; -ALTER TABLE projections.quotas ALTER COLUMN amount DROP NOT NULL; -ALTER TABLE projections.quotas ALTER COLUMN interval DROP NOT NULL; -ALTER TABLE projections.quotas ALTER COLUMN limit_usage DROP NOT NULL; +ALTER TABLE IF EXISTS projections.quotas ALTER COLUMN from_anchor DROP NOT NULL; +ALTER TABLE IF EXISTS projections.quotas ALTER COLUMN amount DROP NOT NULL; +ALTER TABLE IF EXISTS projections.quotas ALTER COLUMN interval DROP NOT NULL; +ALTER TABLE IF EXISTS projections.quotas ALTER COLUMN limit_usage DROP NOT NULL;