Page MenuHomePhabricator

D9547.id32262.diff
No OneTemporary

D9547.id32262.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
Wed, Dec 4, 3:48 PM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2612709
Default Alt Text
D9547.id32262.diff (917 B)

Event Timeline