From dc67cff8ef731eb273bf1b64ffc3f16c737fcd83 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 23 Dec 2018 21:18:09 -0500 Subject: [PATCH] [Database v0004] Add fulltext index to profile for interest match --- src/sql/migrations/down/0003.sql | 3 +++ src/sql/migrations/up/0004.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/sql/migrations/down/0003.sql create mode 100644 src/sql/migrations/up/0004.sql diff --git a/src/sql/migrations/down/0003.sql b/src/sql/migrations/down/0003.sql new file mode 100644 index 0000000..c796c1b --- /dev/null +++ b/src/sql/migrations/down/0003.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER table `profile` DROP KEY `tags`; +COMMIT; diff --git a/src/sql/migrations/up/0004.sql b/src/sql/migrations/up/0004.sql new file mode 100644 index 0000000..ac3edca --- /dev/null +++ b/src/sql/migrations/up/0004.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER table `profile` ADD FULLTEXT KEY `tags` (`tags`); +COMMIT;