Skip to content

Commit

Permalink
Add movies indices
Browse files Browse the repository at this point in the history
  • Loading branch information
NiJeTi committed Jan 26, 2025
1 parent 118249f commit 3a2cbec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/migrator/00003_movies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ create table "guild_movies"
constraint "fk_movies" foreign key ("movie_id")
references "movies" ("id") on delete cascade
);

create index "movies_imdb_id" on "movies" ("imdb_id");
create index "movies_title" on "movies" ("title");
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
drop index "movies_title";
drop index "movies_imdb_id";

drop table "guild_movies";
drop table "movies";
-- +goose StatementEnd

0 comments on commit 3a2cbec

Please sign in to comment.