mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50:55 +01:00
467c4e84e5
Summary: Fixes T10778. This is a result of T10262: when we save a form configuration and adjust the policy, we try to scramble attached file secrets. There aren't going to be any attached files, but there's also no edge table, so we fail. We could skip this code, but we'll likely need an edge table here sooner or later so it's probably simpler in the long run to just add an empty one. Test Plan: - Ran `bin/storage upgrade`, got a clean bill of health. - Saved a form configuration after making a policy edit, no more `edge` exception. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10778 Differential Revision: https://secure.phabricator.com/D15803
16 lines
567 B
SQL
16 lines
567 B
SQL
CREATE TABLE {$NAMESPACE}_search.edge (
|
|
src VARBINARY(64) NOT NULL,
|
|
type INT UNSIGNED NOT NULL,
|
|
dst VARBINARY(64) NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
seq INT UNSIGNED NOT NULL,
|
|
dataID INT UNSIGNED,
|
|
PRIMARY KEY (src, type, dst),
|
|
KEY `src` (src, type, dateCreated, seq),
|
|
UNIQUE KEY `key_dst` (dst, type, src)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
|
|
|
CREATE TABLE {$NAMESPACE}_search.edgedata (
|
|
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
data LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT}
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|