0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Add tour field to User

closes #5171

- adds tour field to user model
- Bump Schema version
- Update tests
This commit is contained in:
Joe Cannatti 2015-07-11 11:56:17 -07:00 committed by Hannah Wolfe
parent 6c5fea40ca
commit 6938216984
3 changed files with 3 additions and 2 deletions

View file

@ -38,6 +38,7 @@ var db = {
language: {type: 'string', maxlength: 6, nullable: false, defaultTo: 'en_US'},
meta_title: {type: 'string', maxlength: 150, nullable: true},
meta_description: {type: 'string', maxlength: 200, nullable: true},
tour: {type: 'text', maxlength: 65535, nullable: true},
last_login: {type: 'dateTime', nullable: true},
created_at: {type: 'dateTime', nullable: false},
created_by: {type: 'integer', nullable: false},

View file

@ -20,7 +20,7 @@ describe('Migrations', function () {
describe('DB version integrity', function () {
// Only these variables should need updating
var currentDbVersion = '004',
currentSchemaHash = '45d72a3c103e36d9cde9f723a71287af',
currentSchemaHash = '5e6c9d6b9df6a0b77aff2ec582f536d9',
currentPermissionsHash = '42e486732270cda623fc5efc04808c0c';
// If this test is failing, then it is likely a change has been made that requires a DB version bump,

View file

@ -23,7 +23,7 @@ var _ = require('lodash'),
],
theme: ['uuid', 'name', 'version', 'active'],
user: ['id', 'uuid', 'name', 'slug', 'email', 'image', 'cover', 'bio', 'website',
'location', 'accessibility', 'status', 'language', 'meta_title', 'meta_description', 'last_login',
'location', 'accessibility', 'status', 'language', 'meta_title', 'meta_description', 'tour', 'last_login',
'created_at', 'created_by', 'updated_at', 'updated_by'
],
notification: ['type', 'message', 'status', 'id', 'dismissible', 'location'],