Page MenuHomePhabricator

D11838.id39708.diff
No OneTemporary

D11838.id39708.diff

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

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)

Event Timeline