Skip to content

Commit

Permalink
Fixed migration for full text search.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Feb 26, 2024
1 parent 6ec9e2a commit e6c76e0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ public function up(Connection $conn)
ADD `record` longtext COLLATE 'utf8mb4_unicode_ci' NULL AFTER `title`;
ALTER TABLE `fulltext_search`
ADD FULLTEXT `IDX_AA31FE4A2B36786B9B349F91` (`title`, `record`),
ADD FULLTEXT `IDX_AA31FE4A3B8BA7C7` (`text`),
DROP INDEX `IDX_AA31FE4A2B36786B3B8BA7C7`;
ALTER TABLE `fulltext_search`
ADD FULLTEXT `IDX_AA31FE4A2B36786B9B349F91` (`title`, `record`);
ALTER TABLE `fulltext_search`
ADD FULLTEXT `IDX_AA31FE4A3B8BA7C7` (`text`);

SQL;
$conn->executeStatement($sql);

Expand Down

0 comments on commit e6c76e0

Please sign in to comment.