mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
Fix/tutorial flows with migration (#9620)
* fix(core): #9609 delete tutorial flows and triggers before migrating the database * fix(core): #9609 delete tutorial flows and triggers before migrating the database for EE version --------- Co-authored-by: nKwiatkowski <nkwiatkowski@kestra.io>
This commit is contained in:
@@ -39,4 +39,13 @@ public class H2TenantMigration extends AbstractJdbcTenantMigration {
|
||||
|
||||
return context.execute(query);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int deleteTutorialFlows(Table<?> table, DSLContext context) {
|
||||
String query = """
|
||||
DELETE FROM "%s"
|
||||
WHERE JQ_STRING("value", '.namespace') = ?
|
||||
""".formatted(table.getName());
|
||||
return context.execute(query, "tutorial");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user