mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
974c6071e8
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) |
||
---|---|---|
.. | ||
clients | ||
fixtures | ||
backup.js | ||
checks.js | ||
commands.js | ||
default-settings.json | ||
index.js | ||
schema.js | ||
versioning.js |