Files
database/migrations/archive/000.358.sql
T
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

7 lines
135 B
SQL

ALTER TABLE discount_codes ADD CONSTRAINT valid_values CHECK (
value >= 0
and (
type != '%' or (type = '%' and value <= 100)
)
);