diff --git a/core/server/data/schema/schema.js b/core/server/data/schema/schema.js index ae9a96ff3d..fdd6706bc8 100644 --- a/core/server/data/schema/schema.js +++ b/core/server/data/schema/schema.js @@ -486,7 +486,7 @@ module.exports = { }, tokens: { id: {type: 'string', maxlength: 24, nullable: false, primary: true}, - token: {type: 'string', maxlength: 24, nullable: false, index: true}, + token: {type: 'string', maxlength: 32, nullable: false, index: true}, data: {type: 'string', maxlength: 2000, nullable: true}, created_at: {type: 'dateTime', nullable: false}, created_by: {type: 'string', maxlength: 24, nullable: false} diff --git a/test/unit/data/schema/integrity_spec.js b/test/unit/data/schema/integrity_spec.js index c61d0928a7..18f858d73e 100644 --- a/test/unit/data/schema/integrity_spec.js +++ b/test/unit/data/schema/integrity_spec.js @@ -32,7 +32,7 @@ const defaultSettings = require('../../../../core/server/data/schema/default-set */ describe('DB version integrity', function () { // Only these variables should need updating - const currentSchemaHash = 'e90889dff39d27934ad7550dcb0e641c'; + const currentSchemaHash = '6fb451dbbe6ae6105e92b39c715e9afd'; const currentFixturesHash = '29148c40dfaf4f828c5fca95666f6545'; const currentSettingsHash = 'c8daa2c9632bb75f9d60655de09ae3bd'; const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';