mirror of
https://github.com/friendica/friendica-directory
synced 2024-11-16 00:29:24 +01:00
[Database v0008] Replace profile_url with username in profile full-text index
- Prevents search matches on node domain name
This commit is contained in:
parent
7780d3af09
commit
4621ae2001
4
src/sql/migrations/down/0007.sql
Normal file
4
src/sql/migrations/down/0007.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
BEGIN;
|
||||
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
||||
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `profile_url`, `locality`, `region`, `country`);
|
||||
COMMIT;
|
4
src/sql/migrations/up/0008.sql
Normal file
4
src/sql/migrations/up/0008.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
BEGIN;
|
||||
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
||||
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `username`, `locality`, `region`, `country`);
|
||||
COMMIT;
|
Loading…
Reference in a new issue