mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
a36191de5c
closes #9587 - when `useNullAsDefault` was invented in knex 0.10, it was a breaking change, that update/insert etc no longer set's null as default if a field is missing - at this time we thought it only affects our test env, because the test generator doesn't generate all fields - but turned out the importer is affected as well e.g. you import a post with missing fields - the importer doesn't iterate over all fields and checks if the field is present or not - as this only happens with SQlite3, we should enable `useNullAsDefault` by default - you can still disable this option if you want, but not recommended - the reason why knex added this breaking change was that some applications want "undefined" as value - this is not the case in Ghost, so it's fine to make use of the default null behaviour |
||
---|---|---|
.. | ||
backup.js | ||
connection.js | ||
health.js | ||
index.js |