From f90d7ddee32e7c376855b24ce0b7eab657640df6 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 24 Feb 2021 00:49:50 +0900 Subject: [PATCH] Add SQL to add/drop index to/from medias.file_path --- .../postgres/2021-02-23-153402_medias_index_file_path/down.sql | 2 +- .../postgres/2021-02-23-153402_medias_index_file_path/up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);