-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move migration for apps to 1.3.3 all together (#15944)
(cherry picked from commit d1d9648)
- Loading branch information
1 parent
5fba19c
commit 8d39f1a
Showing
3 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
25 changes: 24 additions & 1 deletion
25
bootstrap/sql/migrations/native/1.3.3/mysql/schemaChanges.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
); |
2 changes: 1 addition & 1 deletion
2
...rvice/migration/mysql/v131/Migration.java → ...rvice/migration/mysql/v133/Migration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ce/migration/postgres/v131/Migration.java → ...ce/migration/postgres/v133/Migration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters