-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Broken DeleteExecutionsWithWorkflows
migration
#5212
Comments
Hey @ifokeev Thanks for reporting this one, will get a fix in place shortly for the next release. |
We plan on releasing a hotfix today, the fix can be seen here: #5218 |
Hi @krynble!
should be in every migration, not only in this one |
Good point @ifokeev, added the others too. |
Fix got released with |
Hey @ifokeev, As this is resolved I am going to close this issue, We will also be updating all of the older migrations to use the newer approach to keep things consistent. Thanks again for reporting this. |
Bug not fixed, so reopen the issue.
Same situation as described in #5183 while migrating to 0.212.0 from 0.210.0.
After checking the codebase, it looks like
DB_POSTGRESDB_SCHEMA
n8n/packages/cli/src/config/schema.ts
Line 100 in 9b032d6
I'm using a specified schema for n8n, but I don't see that migrations are executed in this scope.
All new migrations are not specifying the schema as here:
n8n/packages/cli/src/databases/migrations/postgresdb/1658932090381-AddNodeIds.ts
Lines 13 to 16 in 0da338f
For example:
https://github.com/n8n-io/n8n/blob/master/packages/cli/src/databases/migrations/postgresdb/1673268682475-DeleteExecutionsWithWorkflows.ts
I see there is a function
getTablePrefix
, but it's not used everywhere:n8n/packages/cli/src/databases/migrations/postgresdb/1669823906995-AddTriggerCountColumn.ts
Line 11 in 0da338f
It looks like all new migrations should use this function
Environment:
The text was updated successfully, but these errors were encountered: