Page MenuHomePhabricator

D5308.id18516.diff
No OneTemporary

D5308.id18516.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
@@ -232,6 +232,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, 2:23 PM (15 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681915
Default Alt Text
D5308.id18516.diff (848 B)

Event Timeline