Open maxime-rainville opened 5 years ago
Let's say you have enum field that accepts values one, two and three with two as the default. If you later remove one from the list of allowed values and rebuild your database, all instances of one should be rewritten to the default two.
one
two
three
At least that's how DBSchemaManager::requiredField() is written.
DBSchemaManager::requiredField()
However because the SQLite enum format is different, there's a regex that falls on its face and the invalidated values don't get updated. DBEnumTest will fail on SQLite once https://github.com/silverstripe/silverstripe-framework/pull/8118 is merged.
DBEnumTest
Let's say you have enum field that accepts values
one
,two
andthree
withtwo
as the default. If you later removeone
from the list of allowed values and rebuild your database, all instances ofone
should be rewritten to the defaulttwo
.At least that's how
DBSchemaManager::requiredField()
is written.However because the SQLite enum format is different, there's a regex that falls on its face and the invalidated values don't get updated.
DBEnumTest
will fail on SQLite once https://github.com/silverstripe/silverstripe-framework/pull/8118 is merged.