Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32179236
D6465.1765072736.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
916 B
Referenced Files
None
Subscribers
None
D6465.1765072736.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
@@ -147,6 +147,15 @@
`);
},
],
+ [
+ 15,
+ async () => {
+ await dbQuery(SQL`
+ ALTER TABLE uploads
+ ADD COLUMN IF NOT EXISTS thread bigint(20) DEFAULT NULL;
+ `);
+ },
+ ],
]);
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
@@ -170,6 +170,7 @@
CREATE TABLE uploads (
id bigint(20) NOT NULL,
+ thread bigint(20) DEFAULT NULL,
uploader bigint(20) NOT NULL,
container bigint(20) DEFAULT NULL,
type varchar(255) NOT NULL,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 1:58 AM (14 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842052
Default Alt Text
D6465.1765072736.diff (916 B)
Attached To
Mode
D6465: [keyserver] Add thread column to uploads table
Attached
Detach File
Event Timeline
Log In to Comment