1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/resources/sql/autopatches/20141016.almanac.device.sql
epriestley 247cb94d5a Build AlmanacDevice UI
Summary: Ref T5833. The "uninteresting" part of this object is virtually identical to AlmanacService.

Test Plan: See screenshots.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5833

Differential Revision: https://secure.phabricator.com/D10714
2014-10-17 05:02:14 -07:00

22 lines
682 B
SQL

TRUNCATE TABLE {$NAMESPACE}_almanac.almanac_device;
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
CHANGE name name VARCHAR(128) NOT NULL COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD nameIndex BINARY(12) NOT NULL;
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD mailKey BINARY(20) NOT NULL;
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD UNIQUE KEY `key_name` (nameIndex);
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD KEY `key_nametext` (name);
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD viewPolicy VARBINARY(64) NOT NULL;
ALTER TABLE {$NAMESPACE}_almanac.almanac_device
ADD editPolicy VARBINARY(64) NOT NULL;