Page MenuHomePhabricator

D11976.id40031.diff
No OneTemporary

D11976.id40031.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
@@ -769,6 +769,17 @@
);
},
],
+ [
+ 62,
+ async () => {
+ await dbQuery(
+ SQL`
+ ALTER TABLE uploads
+ MODIFY container bigint(20)
+ `,
+ );
+ },
+ ],
]);
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 varchar(255) CHARSET latin1 COLLATE latin1_bin DEFAULT NULL,
+ container bigint(20) 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
Tue, Dec 24, 4:35 PM (8 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2699568
Default Alt Text
D11976.id40031.diff (1 KB)

Event Timeline