0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/data
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
..
db Enabled useNullAsDefault for SQlite3 2018-08-11 13:52:03 +02:00
export Fixed exporting extra tables for endpoint db/backup 2018-08-10 15:31:54 +02:00
importer Importer: Added protection for duplicate trusted domains 2018-08-08 19:00:23 +02:00
meta 🐛 Fixed Disqus comments on post preview pages 2018-07-11 00:20:55 +02:00
migrations 🐛 Fixed 1.25 migration for html field being null 2018-07-25 21:54:44 +02:00
schema 🎨 Added Koenig Demo Post (#9747) 2018-07-24 14:37:17 +02:00
validation Updated docs links 2018-07-20 23:49:16 +02:00
xml/sitemap Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
timezones.json Adds UTC as select option to timezones select list 2016-06-10 15:19:16 +02:00