Remove page column and remaining references

refs #10922
This commit is contained in:
Fabien O'Carroll 2019-07-23 15:38:17 +08:00
parent e59806cb45
commit 9d7190d692
4 changed files with 0 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,6 @@ module.exports = {
plaintext: {type: 'text', maxlength: 1000000000, fieldtype: 'long', nullable: true},
feature_image: {type: 'string', maxlength: 2000, nullable: true},
featured: {type: 'bool', nullable: false, defaultTo: false},
page: {type: 'bool', nullable: false, defaultTo: false},
type: {type: 'string', maxlength: 50, nullable: false, defaultTo: 'post', validations: {isIn: [['post', 'page']]}},
status: {type: 'string', maxlength: 50, nullable: false, defaultTo: 'draft'},
locale: {type: 'string', maxlength: 6, nullable: true},

View File

@ -44,7 +44,6 @@ Post = ghostBookshelf.Model.extend({
uuid: uuid.v4(),
status: 'draft',
featured: false,
page: false,
type: 'post',
visibility: 'public'
};

View File

@ -74,7 +74,6 @@ DataGenerator.Content = {
title: 'This is a static page',
slug: 'static-page-test',
mobiledoc: DataGenerator.markdownToMobiledoc('<h1>Static page test is what this is for.</h1><p>Hopefully you don\'t find it a bore.</p>'),
page: true
type: 'page'
},
{
@ -82,7 +81,6 @@ DataGenerator.Content = {
title: 'This is a draft static page',
slug: 'static-page-draft',
mobiledoc: DataGenerator.markdownToMobiledoc('<h1>Static page test is what this is for.</h1><p>Hopefully you don\'t find it a bore.</p>'),
page: true,
type: 'page',
status: 'draft'
},
@ -470,7 +468,6 @@ DataGenerator.forKnex = (function () {
status: 'published',
feature_image: null,
featured: false,
page: false,
type: 'post',
slug: 'slug',
author_id: DataGenerator.Content.users[0].id,