We use generic data types based on Knex that map to the specific database native data types.
So if the database support the date type than it is used, if not like in SQLite than the text type is used so all dates are stored in text which is common practice in SQLite.
Our date formatters work on text types just fine so they won’t throw any errors.
Probably your text field was NULL so it couldn’t be converted to iso date. If you expect null you might want to convert it to empty string as default but if you then convert that to date you will get the current date, so not sure if that is what you want