mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
488b1cf641
Summary: There have been a couple of requests for this since bookmarks are "out this year like woah" and "totally uncool dude". Allow users to save named custom queries and make them the /maniphest/ default if they so desire. A little messy. :/ Test Plan: Saved, edited, deleted custom queries. Made custom query default; made 'no default' default. Verified default behavior. Issued a modified search from a custom query. Reviewers: btrahan Reviewed By: btrahan CC: aran, epriestley, 20after4 Maniphest Tasks: T923, T1034 Differential Revision: https://secure.phabricator.com/D1964
13 lines
471 B
SQL
13 lines
471 B
SQL
CREATE TABLE phabricator_maniphest.maniphest_savedquery (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
userPHID varchar(64) COLLATE utf8_bin NOT NULL,
|
|
queryKey varchar(64) COLLATE utf8_bin NOT NULL,
|
|
name varchar(128) COLLATE utf8_general_ci NOT NULL,
|
|
isDefault BOOL NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
|
|
KEY (userPHID, name),
|
|
KEY (userPHID, isDefault, name)
|
|
|
|
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|