Ghost/core/server/data/schema/default-settings.json
Katharina Irrgang e2e83a0f7b Migration: New database versioning (#7499)
refs #7489

- new database versioning scheme which is based upon the Ghost version, and so easier to reason about
- massive refactor of all the version related code 

Summary of changes:

*   new error: DatabaseNotSeeded
* 🎨  change versioning module
  - versioning is based on Ghost Version
* 🎨  change bootUp file
  - add big picture description
  - version error get's trigger from versioning module
* 🎨  default setting for database version is null
  - very important change: this is caused by the big picture
  - see bootUp description
  - the database version get's set by the seed script later
  - db version is by default null
  - 1. population happens (we ensure that this has finished, by checking if each table exists)   
  - 2. seeds happening (we ensure that seeds happend if database version is set to X.X)
* 🎨  temporary change for population logic
  - set database version after population happens
  - ensure population of default settings happend before
  - both: get's removed in next iteration
* 🎨  adapt tests && mark TODO's
* 🎨  err instance checking
2016-10-06 14:50:55 +01:00

115 lines
2.6 KiB
JSON

{
"core": {
"databaseVersion": {
"defaultValue": null
},
"dbHash": {
"defaultValue": null
},
"nextUpdateCheck": {
"defaultValue": null
},
"displayUpdateNotification": {
"defaultValue": null
},
"seenNotifications": {
"defaultValue": "[]"
},
"migrations": {
"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": ""
}
}
}