You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing the migration requires manually resetting the target database to delete migrated data.
Solution:
Especially if #4 is implemented, target connections databases could reset themselves in development, if a SQL script is provided.
UPDATE 2021-05-17:
Tests using a database can extend AbstractDbalTestCase. It still resets manually.
A test has been made to use an in-memory SQLite database but the DBAL platform does not support foreign key constraints and is incompatible with the foreign key feature as mentionned in ForeignKeyBeforeTask.
Testing the migration requires manually resetting the target database to delete migrated data.
Solution:
Especially if #4 is implemented, target connections databases could reset themselves in development, if a SQL script is provided.
UPDATE 2021-05-17:
Tests using a database can extend AbstractDbalTestCase. It still resets manually.
A test has been made to use an in-memory SQLite database but the DBAL platform does not support foreign key constraints and is incompatible with the foreign key feature as mentionned in ForeignKeyBeforeTask.
Leaving open until doctrine/dbal#4288 is fixed
The text was updated successfully, but these errors were encountered: