Change Query for Postgres

This commit is contained in:
mohitdeuex 2024-08-21 17:07:45 +05:30
parent 9309cf94c1
commit 30a3f32b0f

View File

@ -277,7 +277,7 @@ jsonb_build_array(json#>'{dataModel,owner}')) where json #>> '{dataModel,owner}'
CREATE INDEX IF NOT EXISTS extension_index ON entity_extension (extension); CREATE INDEX IF NOT EXISTS extension_index ON entity_extension (extension);
-- Remove SearchIndexing for api Service, collection and endpoint -- Remove SearchIndexing for api Service, collection and endpoint
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication'; DELETE FROM entity_relationship er USING installed_apps ia WHERE (er.fromId = ia.id OR er.toId = ia.id) AND ia.name = 'SearchIndexingApplication';
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication'; DELETE FROM entity_relationship er USING apps_marketplace ia WHERE (er.fromId = ia.id OR er.toId = ia.id) AND ia.name = 'SearchIndexingApplication';
DELETE from installed_apps where name = 'SearchIndexingApplication'; DELETE from installed_apps where name = 'SearchIndexingApplication';
DELETE from apps_marketplace where name = 'SearchIndexingApplication'; DELETE from apps_marketplace where name = 'SearchIndexingApplication';