From 0a40d11af9739d94ffdad4b78178bd6518a9b30c Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 10 Oct 2019 11:18:09 +0700 Subject: [PATCH] Added note column to members table no-issue --- core/server/data/schema/schema.js | 1 + core/test/unit/data/schema/integrity_spec.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server/data/schema/schema.js b/core/server/data/schema/schema.js index b519e63c7d..654de757e4 100644 --- a/core/server/data/schema/schema.js +++ b/core/server/data/schema/schema.js @@ -386,6 +386,7 @@ module.exports = { id: {type: 'string', maxlength: 24, nullable: false, primary: true}, email: {type: 'string', maxlength: 191, nullable: false, unique: true, validations: {isEmail: true}}, name: {type: 'string', maxlength: 191, nullable: true}, + note: {type: 'string', maxlength: 2000, nullable: true}, created_at: {type: 'dateTime', nullable: false}, created_by: {type: 'string', maxlength: 24, nullable: false}, updated_at: {type: 'dateTime', nullable: true}, diff --git a/core/test/unit/data/schema/integrity_spec.js b/core/test/unit/data/schema/integrity_spec.js index 891814c867..84e1b851bb 100644 --- a/core/test/unit/data/schema/integrity_spec.js +++ b/core/test/unit/data/schema/integrity_spec.js @@ -19,7 +19,7 @@ var should = require('should'), */ describe('DB version integrity', function () { // Only these variables should need updating - const currentSchemaHash = 'a5341373370dc25009806963c1bc236f'; + const currentSchemaHash = 'c4a06e34d7792fd23d94f613b7d3d4fb'; const currentFixturesHash = 'c7b485fe2f16517295bd35c761129729'; // If this test is failing, then it is likely a change has been made that requires a DB version bump,