diff --git a/bootstrap/sql/migrations/native/1.4.2/mysql/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.4.2/mysql/postDataMigrationSQLScript.sql new file mode 100644 index 000000000000..758d4e2cfd95 --- /dev/null +++ b/bootstrap/sql/migrations/native/1.4.2/mysql/postDataMigrationSQLScript.sql @@ -0,0 +1,5 @@ +-- Fix hanging partition migration +-- in 1.4.x `tablePartition.intervalType` should not exists +UPDATE table_entity +SET json = JSON_REMOVE(json, '$.tablePartition') +WHERE JSON_EXTRACT(json, '$.tablePartition.intervalType') IS NOT NULL; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/bootstrap/sql/migrations/native/1.4.2/postgres/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.4.2/postgres/postDataMigrationSQLScript.sql new file mode 100644 index 000000000000..10f21b170185 --- /dev/null +++ b/bootstrap/sql/migrations/native/1.4.2/postgres/postDataMigrationSQLScript.sql @@ -0,0 +1,5 @@ +-- Fix hanging partition migration +-- in 1.4.x `tablePartition.intervalType` should not exists +UPDATE table_entity +SET json = json - 'tablePartition' +WHERE json->'tablePartition'->'intervalType' is not null; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql new file mode 100644 index 000000000000..e69de29bb2d1