Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3490025
D5308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
848 B
Referenced Files
None
Subscribers
None
D5308.diff
View Options
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
@@ -233,6 +233,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),
@@ -343,6 +350,9 @@
ALTER TABLE metadata
ADD PRIMARY KEY (name);
+
+ ALTER TABLE policy_acknowledgments
+ ADD PRIMARY KEY (user, policy);
`,
{ multipleStatements: true },
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 2:26 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677696
Default Alt Text
D5308.diff (848 B)
Attached To
Mode
D5308: [keyserver] add code to create `policy_acknowledgments` table on database setup
Attached
Detach File
Event Timeline
Log In to Comment