mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
13 lines
352 B
MySQL
13 lines
352 B
MySQL
|
ALTER TABLE phabricator_search.search_query
|
||
|
DROP authorPHID;
|
||
|
|
||
|
ALTER TABLE phabricator_search.search_query
|
||
|
ADD queryKey VARCHAR(12) NOT NULL;
|
||
|
|
||
|
/* Preserve URIs for old queries in case anyone has them bookmarked. */
|
||
|
UPDATE phabricator_search.search_query
|
||
|
SET queryKey = id;
|
||
|
|
||
|
ALTER TABLE phabricator_search.search_query
|
||
|
ADD UNIQUE KEY (queryKey);
|