Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3295633
D11838.id39708.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
D11838.id39708.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
@@ -758,6 +758,17 @@
);
},
],
+ [
+ 61,
+ async () => {
+ await dbQuery(
+ SQL`
+ ALTER TABLE uploads
+ MODIFY container varchar(255) CHARSET latin1 COLLATE latin1_bin
+ `,
+ );
+ },
+ ],
]);
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
@@ -196,7 +196,7 @@
id bigint(20) NOT NULL,
thread bigint(20) DEFAULT NULL,
uploader varchar(255) CHARSET latin1 COLLATE latin1_bin NOT NULL,
- container bigint(20) DEFAULT NULL,
+ container varchar(255) CHARSET latin1 COLLATE latin1_bin DEFAULT NULL,
type varchar(255) CHARSET latin1 COLLATE latin1_swedish_ci NOT NULL,
filename varchar(255) NOT NULL,
mime varchar(255) CHARSET latin1 COLLATE latin1_swedish_ci NOT NULL,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:23 PM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2532116
Default Alt Text
D11838.id39708.diff (1 KB)
Attached To
Mode
D11838: [keyserver] Update uploads table type
Attached
Detach File
Event Timeline
Log In to Comment