diff --git a/migrations/20230426221940_init.up.sql b/migrations/20230426221940_init.up.sql index 5cf418d..b4bf1f4 100644 --- a/migrations/20230426221940_init.up.sql +++ b/migrations/20230426221940_init.up.sql @@ -69,7 +69,11 @@ create table if not exists watch_notes ( ); -- indices, not needed for covens -create index if not exists witch_dex on witches ( username, email ); -create index if not exists watch_dex on watches ( title, length, release_date, added_by ); -create index if not exists ww_dex on witch_watch ( witch, watch, public ); -create index if not exists note_dex on watch_notes ( witch, watch, public ); +create index if not exists witch_username_dex on witches (username); +create index if not exists witch_email_dex on witches (email); +create index if not exists watch_title_dex on watches (title); +create index if not exists watch_added_by_dex on watches (added_by); +create index if not exists ww_witch_dex on witch_watch (witch); +create index if not exists ww_watch_dex on witch_watch (watch); +create index if not exists note_witch_dex on watch_notes (witch); +create index if not exists note_watch_dex on watch_notes (watch);