Page MenuHomePhabricator

D5308.id17379.diff
No OneTemporary

D5308.id17379.diff

diff --git a/keyserver/src/database/setup-db.js b/keyserver/src/database/setup-db.js
--- a/keyserver/src/database/setup-db.js
+++ b/keyserver/src/database/setup-db.js
@@ -230,6 +230,13 @@
name varchar(255) NOT NULL,
data varchar(255)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+ CREATE TABLE policy_acknowledgments (
+ user bigint(20) NOT NULL,
+ policy varchar(255) NOT NULL,
+ date bigint(20) NOT NULL,
+ confirmed tinyint(1) UNSIGNED NOT NULL DEFAULT 0
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE cookies
ADD PRIMARY KEY (id),
@@ -341,6 +348,9 @@
ALTER TABLE metadata
ADD PRIMARY KEY (name);
+
+ ALTER TABLE policy_acknowledgments
+ ADD PRIMARY KEY (user, policy);
`,
{ multipleStatements: true },
);

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 3:20 PM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681982
Default Alt Text
D5308.id17379.diff (848 B)

Event Timeline