Closed leandrocp closed 2 years ago
Thanks! I've released v0.4.13
to resolve this. In ecto_sql
3.8.0 the options for fields are now validated. We still need the migration columns to have NOT NULL
constraint set to ensure data integrity. I've separated the two options so they are dealt with appropriately, and this makes it trivial to add any options in the future if necessary.
Let me know if there's any issues with this release!
Thanks! I've released
v0.4.13
to resolve this. Inecto_sql
3.8.0 the options for fields are now validated. We still need the migration columns to haveNOT NULL
constraint set to ensure data integrity. I've separated the two options so they are dealt with appropriately, and this makes it trivial to add any options in the future if necessary.Let me know if there's any issues with this release!
Thanks! I didn't realize attrs
were used by migrations too but it makes sense. I'll give it a try and let you know if something doesn't work as expected.
On Ecto v3.8.0 I started getting the following error:
Which makes sense because
null
is not a valid attr (seems like it has never been), see https://github.com/elixir-ecto/ecto/blob/4fa2c26dc2064aa2963b96bddee662d18a63e7fd/lib/ecto/schema.ex#L491-L507I just don't know why it started failing on Ecto v3.8.0 and not on previous versions, but either way seems like that
null: false
should be removed.Tested on Elixir v1.13.0 and v1.13.4