Ghost/core/server/data
Katharina Irrgang 869a35c97d migrations: seeding is part of init db task (#7545)
* 🎨  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
2016-10-12 16:18:57 +01:00
..
db utf8mb4 support (#7409) 2016-09-20 15:59:34 +01:00
export Error creation (#7477) 2016-10-06 13:27:35 +01:00
import Error creation (#7477) 2016-10-06 13:27:35 +01:00
importer Error creation (#7477) 2016-10-06 13:27:35 +01:00
meta Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
migration use migration runner for init db (#7502) 2016-10-11 13:37:11 +01:00
migrations/init migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
schema migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
sephiroth migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
slack Error creation (#7477) 2016-10-06 13:27:35 +01:00
validation Error creation (#7477) 2016-10-06 13:27:35 +01:00
xml 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
timezones.json Adds UTC as select option to timezones select list 2016-06-10 15:19:16 +02:00