-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.6 sqlite some tests has been broken #23103
Comments
What's your DB schema for that table? |
From first migration:
and later was alter file:
|
Can you list out the |
There is nothing except simple array of values, ex.: ['slug1', 'slug2'], they are unique, so no duplicated values. As I told it worked in 5.5, even since 5.3 version those tests exists, this could not happen suddenly while code basis didn't changed :/ |
The error shows your SQL insert statement which includes inserting "fake_slug" into the slug column and "random" into the type column. Neither of those match "slug1" or "slug2". Because SQLite doesn't natively support enums, I'm assuming Laravel uses CHECK constraints instead to limit the columns. |
I didn't provided full list of slug enums, only some of them to imagine values, so faker chose random slug value of all slug posible values, so there is no doubt that created schema with one value but inserting other, I am working with same set. |
Even 5.6.0 throws same error. Well, I changed really not existing |
I have found problem and not...
within #22109 This place has changed |
Indeed, was introduced in #22109 |
For me the problem was with a case of a value I fill a enum-field with.
and in a factory
|
@laurencei Can be closed. |
Description:
I tried to migrate from 5.5.32 to 5.6.3 version, but some of tests (1.6% of all tests) started to fail with very weird error:
Integrity constraint violation: 19 CHECK constraint failed
Is there any change was made to sqlite, like strict mode or something like that?
error occurs on very primitive line:
There is no relations in that table, so I don't have any ideas what can arise such error..
http://www.sqlite.org/opcode.html#Halt maybe this can help
The text was updated successfully, but these errors were encountered: