mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
869a35c97d
* 🎨 move heart of fixtures to schema folder and change user model - add fixtures.json to schema folder - add fixture utils to schema folder - keep all the logic! --> FIXTURE.JSON - add owner user with roles --> USER MODEL - add password as default - findAll: allow querying inactive users when internal context (defaultFilters) - findOne: do not remove values from original object! - add: do not remove values from original object! * 🔥 remove migrations key from default_settings.json - this was a temporary invention for an older migration script - sephiroth keep alls needed information in a migration collection * 🔥 add code property to errors - add code property to errors - IMPORTANT: please share your opinion about that - this is a copy paste behaviour of how node is doing that (errno, code etc.) - so code specifies a GhostError * 🎨 change error handling in versioning - no need to throw specific database errors anymore (this was just a temporary solution) - now: we are throwing real DatabaseVersionErrors - specified by a code - background: the versioning unit has not idea about seeding and population of the database - it just throws what it knows --> database version does not exist or settings table does not exist * 🎨 sephiroth optimisations - added getPath function to get the path to init scripts and migration scripts - migrationPath is still hardcoded (see TODO) - tidy up database naming to transacting * ✨ migration init scripts are now complete - 1. add tables - 2. add fixtures - 3. add default settings * 🎨 important: make bootup script smaller! - remove all TODO'S except of one - no seeding logic in bootup script anymore 🕵🏻 * ✨ sephiroth: allow params for init command - param: skip (do not run this script) - param: only (only run this script) - very simple way * 🎨 adapt tests and test env - do not use migrate.populate anymore - use sephiroth instead - jscs/jshint * 🎨 fix User model status checks
112 lines
2.6 KiB
JSON
112 lines
2.6 KiB
JSON
{
|
|
"core": {
|
|
"databaseVersion": {
|
|
"defaultValue": null
|
|
},
|
|
"dbHash": {
|
|
"defaultValue": null
|
|
},
|
|
"nextUpdateCheck": {
|
|
"defaultValue": null
|
|
},
|
|
"displayUpdateNotification": {
|
|
"defaultValue": null
|
|
},
|
|
"seenNotifications": {
|
|
"defaultValue": "[]"
|
|
}
|
|
},
|
|
"blog": {
|
|
"title": {
|
|
"defaultValue": "Ghost"
|
|
},
|
|
"description": {
|
|
"defaultValue": "Just a blogging platform."
|
|
},
|
|
"logo": {
|
|
"defaultValue": ""
|
|
},
|
|
"cover": {
|
|
"defaultValue": ""
|
|
},
|
|
"defaultLang": {
|
|
"defaultValue": "en_US",
|
|
"validations": {
|
|
"isNull": false
|
|
}
|
|
},
|
|
"postsPerPage": {
|
|
"defaultValue": "5",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isInt": true,
|
|
"isLength": [1, 1000]
|
|
}
|
|
},
|
|
"activeTimezone": {
|
|
"defaultValue": "Etc/UTC",
|
|
"validations": {
|
|
"isTimezone": true,
|
|
"isNull": false
|
|
}
|
|
},
|
|
"forceI18n": {
|
|
"defaultValue": "true",
|
|
"validations": {
|
|
"isNull": false,
|
|
"isIn": [["true", "false"]]
|
|
}
|
|
},
|
|
"permalinks": {
|
|
"defaultValue": "/:slug/",
|
|
"validations": {
|
|
"matches": "^(\/:?[a-z0-9_-]+){1,5}\/$",
|
|
"matches": "(:id|:slug|:year|:month|:day|:author)",
|
|
"notContains": "/ghost/"
|
|
}
|
|
},
|
|
"ghost_head": {
|
|
"defaultValue" : ""
|
|
},
|
|
"ghost_foot": {
|
|
"defaultValue" : ""
|
|
},
|
|
"facebook": {
|
|
"defaultValue" : ""
|
|
},
|
|
"twitter": {
|
|
"defaultValue" : ""
|
|
},
|
|
"labs": {
|
|
"defaultValue": "{}"
|
|
},
|
|
"navigation": {
|
|
"defaultValue": "[{\"label\":\"Home\", \"url\":\"/\"}]"
|
|
},
|
|
"slack": {
|
|
"defaultValue": "[{\"url\":\"\"}]"
|
|
}
|
|
},
|
|
"theme": {
|
|
"activeTheme": {
|
|
"defaultValue": "casper"
|
|
}
|
|
},
|
|
"app": {
|
|
"activeApps": {
|
|
"defaultValue": "[]"
|
|
},
|
|
"installedApps": {
|
|
"defaultValue": "[]"
|
|
}
|
|
},
|
|
"private": {
|
|
"isPrivate": {
|
|
"defaultValue": "false"
|
|
},
|
|
"password": {
|
|
"defaultValue": ""
|
|
}
|
|
}
|
|
}
|