Skip to content

Commit 61ec751

Browse files
committed
Migration
1 parent d25accc commit 61ec751

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
-- Placeholder for 1.12.5 MySQL post-data migration SQL
1+
-- Delete SearchIndexingApplication from entity_relationship (via installed_apps)
2+
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
3+
4+
-- Delete SearchIndexingApplication from entity_relationship (via apps_marketplace)
5+
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
6+
7+
-- Delete SearchIndexingApplication from installed_apps
8+
DELETE FROM installed_apps WHERE name = 'SearchIndexingApplication';
9+
10+
-- Delete SearchIndexingApplication from apps_marketplace
11+
DELETE FROM apps_marketplace WHERE name = 'SearchIndexingApplication';
12+
13+
-- Delete SearchIndexingApplication past runs
14+
DELETE FROM apps_extension_time_series WHERE appname = 'SearchIndexingApplication';
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
-- Placeholder for 1.12.5 PostgreSQL post-data migration SQL
1+
-- Delete SearchIndexingApplication from entity_relationship (via installed_apps)
2+
DELETE FROM entity_relationship er USING installed_apps ia WHERE (er.fromId = ia.id OR er.toId = ia.id) AND ia.name = 'SearchIndexingApplication';
3+
4+
-- Delete SearchIndexingApplication from entity_relationship (via apps_marketplace)
5+
DELETE FROM entity_relationship er USING apps_marketplace ia WHERE (er.fromId = ia.id OR er.toId = ia.id) AND ia.name = 'SearchIndexingApplication';
6+
7+
-- Delete SearchIndexingApplication from installed_apps
8+
DELETE FROM installed_apps WHERE name = 'SearchIndexingApplication';
9+
10+
-- Delete SearchIndexingApplication from apps_marketplace
11+
DELETE FROM apps_marketplace WHERE name = 'SearchIndexingApplication';
12+
13+
-- Delete SearchIndexingApplication past runs
14+
DELETE FROM apps_extension_time_series WHERE appname = 'SearchIndexingApplication';

0 commit comments

Comments
 (0)