0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/data
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
..
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 knex-migrator v2 (#7605) 2016-11-07 11:39:49 +00:00
schema 🐛 fix brute schema 2016-11-09 12:14:26 +01:00
slack Error creation (#7477) 2016-10-06 13:27:35 +01:00
validation Use moment-timezone when using .tz() (#7653) 2016-10-31 14:44:24 +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