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 @@ -139,6 +139,14 @@ ]); }, ], + [ + 14, + async () => { + await dbQuery(SQL` + ALTER TABLE cookies MODIFY COLUMN social_proof VARCHAR(4096); + `); + }, + ], ]); 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 @@ -35,7 +35,7 @@ versions json DEFAULT NULL, device_id varchar(255) DEFAULT NULL, public_key varchar(255) DEFAULT NULL, - social_proof varchar(255) DEFAULT NULL, + social_proof varchar(4096) DEFAULT NULL, \`primary\` TINYINT(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;