@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1ALTER TABLE {$NAMESPACE}_search.search_query
2 DROP authorPHID;
3
4ALTER TABLE {$NAMESPACE}_search.search_query
5 ADD queryKey VARCHAR(12) NOT NULL;
6
7/* Preserve URIs for old queries in case anyone has them bookmarked. */
8UPDATE {$NAMESPACE}_search.search_query
9 SET queryKey = id;
10
11ALTER TABLE {$NAMESPACE}_search.search_query
12 ADD UNIQUE KEY (queryKey);
13
14/* NOTE: Accidentally added this as 104, merging. */
15UPDATE {$NAMESPACE}_project.project SET status = IF(status = 5, 100, 0);