Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3404976
D9547.id32262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
917 B
Referenced Files
None
Subscribers
None
D9547.id32262.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
@@ -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
Details
Attached
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)
Attached To
Mode
D9547: [keyserver] Extend size of hash column for MariaDB cookies table
Attached
Detach File
Event Timeline
Log In to Comment