mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
parent
e59806cb45
commit
9d7190d692
File diff suppressed because one or more lines are too long
@ -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},
|
||||
|
@ -44,7 +44,6 @@ Post = ghostBookshelf.Model.extend({
|
||||
uuid: uuid.v4(),
|
||||
status: 'draft',
|
||||
featured: false,
|
||||
page: false,
|
||||
type: 'post',
|
||||
visibility: 'public'
|
||||
};
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user