1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 08:20:57 +01:00
phorge-phorge/resources/sql/patches/20130426.search_savedquery.sql
Bryan Cuccioli 7ad2eae47f 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
2013-04-30 10:48:16 -07:00

11 lines
437 B
SQL

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