mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create index for foreign keys
This commit is contained in:
parent
4948801d7b
commit
bbbb862fac
2 changed files with 10 additions and 0 deletions
|
|
@ -9,4 +9,8 @@ CREATE INDEX IF NOT EXISTS entity_labels_highlight_id_idx ON omnivore.entity_lab
|
|||
|
||||
CREATE INDEX IF NOT EXISTS highlight_library_item_id_idx ON omnivore.highlight (library_item_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS user_profile_user_id_idx ON omnivore.user_profile (user_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS library_item_user_id_idx ON omnivore.library_item (user_id);
|
||||
|
||||
COMMIT;
|
||||
|
|
|
|||
|
|
@ -9,4 +9,10 @@ DROP INDEX IF EXISTS highlight_library_item_id_idx;
|
|||
DROP INDEX IF EXISTS entity_labels_highlight_id_idx;
|
||||
DROP INDEX IF EXISTS entity_labels_library_item_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS user_profile_user_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS library_item_user_id_idx;
|
||||
|
||||
DROP INDEX IF NOT EXISTS recommendation_library_item_id_idx;
|
||||
|
||||
COMMIT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue