Page MenuHomePhabricator

D9547.diff
No OneTemporary

D9547.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
@@ -578,6 +578,11 @@
}
},
],
+ [
+ 47,
+ () =>
+ dbQuery(SQL`ALTER TABLE cookies MODIFY COLUMN hash char(64) NOT 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
@@ -32,7 +32,7 @@
SQL`
CREATE TABLE cookies (
id bigint(20) NOT NULL,
- hash char(60) NOT NULL,
+ hash char(64) NOT NULL,
user varchar(255) CHARSET latin1 COLLATE latin1_bin DEFAULT NULL,
platform varchar(255) DEFAULT NULL,
creation_time bigint(20) NOT NULL,

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 9:21 PM (5 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2612709
Default Alt Text
D9547.diff (917 B)

Event Timeline