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:
committed by
epriestley
parent
c7be6f4aa1
commit
7ad2eae47f
11
resources/sql/patches/20130426.search_savedquery.sql
Normal file
11
resources/sql/patches/20130426.search_savedquery.sql
Normal 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
|
||||
Reference in New Issue
Block a user