Implement saving queries.

Summary: Enable saved query objects to actually be saved to the database.

Test Plan: Insert a call to save() and check that the query is written correctly.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, AnhNhan

Maniphest Tasks: T2625

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

Conflicts:

	src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
This commit is contained in:
Bryan Cuccioli
2013-04-30 10:47:10 -07:00
committed by epriestley
parent c7be6f4aa1
commit 7ad2eae47f
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE {$NAMESPACE}_search.search_savedquery (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
engineClassName VARCHAR(255) NOT NULL COLLATE utf8_bin,
parameters LONGTEXT NOT NULL COLLATE utf8_bin,
dateCreated INT(10) UNSIGNED NOT NULL,
dateModified INT(10) UNSIGNED NOT NULL,
queryKey VARCHAR(12) NOT NULL COLLATE utf8_bin,
PRIMARY KEY(id),
UNIQUE KEY key_queryKey (queryKey)
)
ENGINE=InnoDB, COLLATE utf8_general_ci