Skip to content

Commit

Permalink
Move migration for apps to 1.3.3 all together (#15944)
Browse files Browse the repository at this point in the history
(cherry picked from commit d1d9648)
  • Loading branch information
mohityadav766 committed Apr 18, 2024
1 parent 5fba19c commit 8d39f1a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion bootstrap/sql/migrations/native/1.3.3/mysql/schemaChanges.sql
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
-- Nothing to add here. 1.3.3 migrations only needed for postgres
-- Change scheduleType to scheduleTimeline

UPDATE installed_apps
SET json = JSON_INSERT(
JSON_REMOVE(json, '$.appSchedule.scheduleType'),
'$.appSchedule.scheduleTimeline',
JSON_EXTRACT(json, '$.appSchedule.scheduleType')
);
delete from apps_extension_time_series;


-- Change systemApp to system
UPDATE installed_apps
SET json = JSON_INSERT(
JSON_REMOVE(json, '$.systemApp'),
'$.system',
JSON_EXTRACT(json, '$.systemApp')
);
UPDATE apps_marketplace
SET json = JSON_INSERT(
JSON_REMOVE(json, '$.systemApp'),
'$.system',
JSON_EXTRACT(json, '$.systemApp')
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openmetadata.service.migration.mysql.v131;
package org.openmetadata.service.migration.mysql.v133;

import static org.openmetadata.service.migration.utils.v131.MigrationUtil.migrateCronExpression;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.openmetadata.service.migration.postgres.v131;
package org.openmetadata.service.migration.postgres.v133;

import static org.openmetadata.service.migration.utils.v131.MigrationUtil.migrateCronExpression;

Expand Down

0 comments on commit 8d39f1a

Please sign in to comment.