Added type column to data generator

refs #10922
This commit is contained in:
Fabien O'Carroll 2019-07-23 15:37:18 +08:00
parent 04d0f855de
commit e59806cb45

View File

@ -75,6 +75,7 @@ DataGenerator.Content = {
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'
},
{
id: ObjectId.generate(),
@ -82,6 +83,7 @@ DataGenerator.Content = {
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'
},
{
@ -469,6 +471,7 @@ DataGenerator.forKnex = (function () {
feature_image: null,
featured: false,
page: false,
type: 'post',
slug: 'slug',
author_id: DataGenerator.Content.users[0].id,
updated_at: new Date(),