mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
247cb94d5a
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
22 lines
682 B
SQL
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;
|