Commit 434d00e
fix(mysql): remove CHECK constraint incompatible with MySQL 8.0.16+
MySQL 8.0.16+ doesn't allow CHECK constraints on columns that have
foreign keys with referential actions (ON DELETE SET NULL).
The business rule "only template_id OR custom_template_id can be set"
is now enforced in the application layer instead.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7f3cb1e commit 434d00e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments