Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361232
D12351.id41108.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
D12351.id41108.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
@@ -823,6 +823,15 @@
);
},
],
+ [
+ 65,
+ () =>
+ dbQuery(SQL`
+ ALTER TABLE invite_links
+ ADD COLUMN IF NOT EXISTS thread bigint(20) DEFAULT NULL,
+ ADD INDEX IF NOT EXISTS community_thread (community, thread);
+ `),
+ ],
]);
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
@@ -279,7 +279,8 @@
expiration_time bigint(20),
limit_of_uses int UNSIGNED,
number_of_uses int UNSIGNED NOT NULL DEFAULT 0,
- blob_holder char(36) CHARSET latin1
+ blob_holder char(36) CHARSET latin1,
+ thread bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE olm_sessions (
@@ -429,7 +430,8 @@
ALTER TABLE invite_links
ADD PRIMARY KEY (id),
ADD UNIQUE KEY (name),
- ADD INDEX community_primary (community, \`primary\`);
+ ADD INDEX community_primary (community, \`primary\`),
+ ADD INDEX community_thread (community, thread);
ALTER TABLE olm_sessions
ADD PRIMARY KEY (cookie_id, is_content);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 3:53 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580372
Default Alt Text
D12351.id41108.diff (1 KB)
Attached To
Mode
D12351: [keyserver] Add a thread column to invite links
Attached
Detach File
Event Timeline
Log In to Comment