mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Adds additional fields to apps schema.
fixes #2356 - Adds slug, version and status fields to apps schema - Added fields to data generator
This commit is contained in:
parent
c0dc8e95d2
commit
b8e8f63e44
3 changed files with 18 additions and 3 deletions
|
@ -125,6 +125,9 @@ var db = {
|
|||
id: {type: 'increments', nullable: false, primary: true},
|
||||
uuid: {type: 'string', maxlength: 36, nullable: false},
|
||||
name: {type: 'string', maxlength: 150, nullable: false, unique: true},
|
||||
slug: {type: 'string', maxlength: 150, nullable: false, unique: true},
|
||||
version: {type: 'string', maxlength: 150, nullable: false},
|
||||
status: {type: 'string', maxlength: 150, nullable: false, defaultTo: 'inactive'},
|
||||
created_at: {type: 'dateTime', nullable: false},
|
||||
created_by: {type: 'integer', nullable: false},
|
||||
updated_at: {type: 'dateTime', nullable: true},
|
||||
|
|
|
@ -105,13 +105,22 @@ DataGenerator.Content = {
|
|||
|
||||
apps: [
|
||||
{
|
||||
name: 'Kudos'
|
||||
name: 'Kudos',
|
||||
slug: 'kudos',
|
||||
version: '0.0.1',
|
||||
status: 'installed'
|
||||
},
|
||||
{
|
||||
name: 'Importer'
|
||||
name: 'Importer',
|
||||
slug: 'importer',
|
||||
version: '0.1.0',
|
||||
status: 'inactive'
|
||||
},
|
||||
{
|
||||
name: 'Hemingway'
|
||||
name: 'Hemingway',
|
||||
slug: 'hemingway',
|
||||
version: '1.0.0',
|
||||
status: 'installed'
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
@ -332,6 +332,9 @@
|
|||
"id": 1,
|
||||
"uuid": "4d7557f0-0949-4946-9fe8-ec030e0727f0",
|
||||
"name": "Kudos",
|
||||
"slug": "kudos",
|
||||
"version": "0.0.1",
|
||||
"status": "installed",
|
||||
"created_at": 1388318312790,
|
||||
"created_by": 1,
|
||||
"updated_at": 1388318312790,
|
||||
|
|
Loading…
Add table
Reference in a new issue