Skip to content

[v3] Table not truncated on secondary db connection #66

@Rakasch

Description

@Rakasch

Hello,

I upgraded to Cakephp 5 including Phpunit10 and your plugins:
"vierge-noire/cakephp-fixture-factories": "^3.0",
"vierge-noire/cakephp-test-suite-light": "^3.0"

After upgrading and running the tests I now get duplicate key errors.

I have multiple db connections.
In my test/bootstrap.php I start the migrations like this:
$migrator->runMany([ ['connection' => 'test'], ['connection' => 'test_logs', 'source' => 'MigrationsLogs'], ], false);

I have analyzed the problem so far:
On my second test-db test_logs all the logic for truncating the tables isn't executed at all.

  • the Procedure TruncateDirtyTable is not created
  • the table test_suite_light_dirty_tables is not existing
  • the Triggers for the tables aren't created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions