diff --git a/migrations/postgres/2021-02-23-153402_medias_index_file_path/down.sql b/migrations/postgres/2021-02-23-153402_medias_index_file_path/down.sql index 291a97c5..9604e5d0 100644 --- a/migrations/postgres/2021-02-23-153402_medias_index_file_path/down.sql +++ b/migrations/postgres/2021-02-23-153402_medias_index_file_path/down.sql @@ -1 +1 @@ --- This file should undo anything in `up.sql` \ No newline at end of file +DROP INDEX medias_index_file_path; diff --git a/migrations/postgres/2021-02-23-153402_medias_index_file_path/up.sql b/migrations/postgres/2021-02-23-153402_medias_index_file_path/up.sql index 33cf74b5..d26ad494 100644 --- a/migrations/postgres/2021-02-23-153402_medias_index_file_path/up.sql +++ b/migrations/postgres/2021-02-23-153402_medias_index_file_path/up.sql @@ -1 +1 @@ --- Your SQL goes here \ No newline at end of file +CREATE INDEX medias_index_file_path ON medias (file_path);