Skip to content

Databases reset feature for testing #5

Description

@AymDev

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureRequested or planned feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions