Closed gorbak25 closed 7 months ago
Yeah, CHECK constraints are very limited for the time being. We're holding increasing the validation surface of the Electrify function until the proxy work is fully integrated. We opened an internal issue to track this.
Electric rejects electrification of tables that have unsupported constraints since version v0.9.
In my quest to workaround #524 I added a check constraint manually:
Electric properly electrified the table and everything works(when using old client migrations). The problem is when one tries to regenerate the migrations:
When looking at the
.electric_migrations_tmp
folder it looks like electric thinks the CHECK constraint is a Foreign key constraint:Similar to #509 electric should either filter out the constraints or forbid electrifying tables with those constraints.