Ghost/core/server/data/schema
kirrg001 974c6071e8 🐛 fix brute schema
no issue

- brute-knex uses timestamp type, see https://github.com/llambda/brute-knex/blob/master/index.js
- so we also defined timestamp type
- see http://stackoverflow.com/questions/9192027/invalid-default-value-for-create-date-timestamp-field
- see http://stackoverflow.com/questions/35237278/mysql-invalid-default-value-for-timestamp-when-no-default-value-is-given
- mysql does not allow a second timestamp without default value
- we have to options: define a default value or allow null or use dateTime
- let's use dateTime, as 1. we are using it for all our dates in Ghost and 2. it's recommended
- read here http://www.sqlteam.com/article/timestamps-vs-datetime-data-types
- there are some difference, i think the most important difference is that TIMESTAMP changes if the tz changes in your database
- lifetime is timestamp not a bigInteger, this was a mistake i think (see https://github.com/llambda/brute-knex/blob/master/index.js#L115)
2016-11-09 12:14:26 +01:00
..
clients 🔥 remove postgres support 2016-09-20 15:59:34 +01:00
fixtures migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
backup.js knex-migrator v2 (#7605) 2016-11-07 11:39:49 +00:00
checks.js Reorganise & rename server/data/ folder internals 2016-02-04 20:39:15 +00:00
commands.js use migration runner for init db (#7502) 2016-10-11 13:37:11 +01:00
default-settings.json migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00
index.js knex migrator (#7565) 2016-10-17 13:50:29 +01:00
schema.js 🐛 fix brute schema 2016-11-09 12:14:26 +01:00
versioning.js migrations: seeding is part of init db task (#7545) 2016-10-12 16:18:57 +01:00