Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3523093
D9960.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9960.id.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
@@ -664,6 +664,14 @@
},
],
[52, updateRolesAndPermissionsForAllThreads],
+ [
+ 53,
+ async () =>
+ dbQuery(SQL`
+ ALTER TABLE invite_links
+ ADD COLUMN blob_holder char(36) CHARSET latin1
+ `),
+ ],
]);
const newDatabaseVersion: number = Math.max(...migrations.keys());
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
@@ -263,7 +263,8 @@
community bigint(20) NOT NULL,
expiration_time bigint(20),
limit_of_uses int UNSIGNED,
- number_of_uses int UNSIGNED NOT NULL DEFAULT 0
+ number_of_uses int UNSIGNED NOT NULL DEFAULT 0,
+ blob_holder char(36) CHARSET latin1
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE olm_sessions (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 8:22 AM (14 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2699196
Default Alt Text
D9960.id.diff (1 KB)
Attached To
Mode
D9960: [keyserver] Add a column to invite_links table with a blob holder
Attached
Detach File
Event Timeline
Log In to Comment