1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/resources/sql/patches/20130508.search_namedquery.sql
Bryan Cuccioli 3c1f402da3 Add ability to name saved queries.
Summary: Can name saved queries.

Test Plan: Try naming some saved queries using the form.

Reviewers: epriestley

CC: aran, Korvin, AnhNhan

Maniphest Tasks: T2625

Differential Revision: https://secure.phabricator.com/D5878

Conflicts:

	src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
2013-05-10 16:45:45 -07:00

12 lines
520 B
SQL

CREATE TABLE {$NAMESPACE}_search.search_namedquery (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
userPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
engineClassName VARCHAR(128) NOT NULL COLLATE utf8_bin,
queryName VARCHAR(255) NOT NULL COLLATE utf8_bin,
queryKey VARCHAR(12) NOT NULL COLLATE utf8_bin,
dateCreated INT(10) UNSIGNED NOT NULL,
dateModified INT(10) UNSIGNED NOT NULL,
UNIQUE KEY `key_userquery` (userPHID, engineClassName, queryKey),
PRIMARY KEY(id)
)
ENGINE=InnoDB, COLLATE utf8_general_ci