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

flow cr:setup --reset-projections might fail if tables to be truncated dont exist #5008

Open
mhsdesign opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@mhsdesign
Copy link
Member

We possibly have to try catch this:

private function truncateDatabaseTables(): void
{
    $connection = $this->dbalClient->getConnection();
    try {
        $connection->executeQuery('TRUNCATE table ' . $this->tableNamePrefix . '_node');
    } catch (\Doctrine\DBAL\Exception\TableNotFoundException) {
    }

otherwise - in our dev phase at least - when we add tables to projections, the command doesnt work as expected as it will fail to truncate new tables.
I think its fair that reset would be forgiving.

@mhsdesign mhsdesign added the 9.0 label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant