1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/resources/sql/patches/129.savedquery.sql
epriestley 488b1cf641 Allow Maniphest queries to be saved
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
2012-04-10 09:46:04 -07:00

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;