Skip to content
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

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

Open
Rakasch opened this issue Mar 1, 2024 · 0 comments
Open

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

Rakasch opened this issue Mar 1, 2024 · 0 comments

Comments

@Rakasch
Copy link

Rakasch commented Mar 1, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant