Ghost/core/server/data/db
kirrg001 a36191de5c Enabled useNullAsDefault for SQlite3
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
2018-08-11 13:52:03 +02:00
..
backup.js Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
connection.js Enabled useNullAsDefault for SQlite3 2018-08-11 13:52:03 +02:00
health.js Updated docs links 2018-07-20 23:49:16 +02:00
index.js Exporter cleanup & tests 2016-03-12 19:01:25 +00:00