Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3498533
D5307.id18717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
724 B
Referenced Files
None
Subscribers
None
D5307.id18717.diff
View Options
diff --git a/keyserver/src/database/migration-config.js b/keyserver/src/database/migration-config.js
--- a/keyserver/src/database/migration-config.js
+++ b/keyserver/src/database/migration-config.js
@@ -89,6 +89,20 @@
);
},
],
+ [
+ 10,
+ async () => {
+ await dbQuery(SQL`
+ CREATE TABLE IF NOT EXISTS 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,
+ PRIMARY KEY (user, policy)
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+ `);
+ },
+ ],
]);
const newDatabaseVersion: number = Math.max(...migrations.keys());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 9:27 PM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683193
Default Alt Text
D5307.id18717.diff (724 B)
Attached To
Mode
D5307: [keyserver] add migration to create `policy_acknowledgments` table
Attached
Detach File
Event Timeline
Log In to Comment