Closed amine2233 closed 4 years ago
Finally the Postgres don't like specific format
on @Timestamp
In case someone else gets this error, as docs mention .iso8601
must be stored in a .string
field: https://docs.vapor.codes/4.0/fluent/model/#timestamp-format
@grundoon That part is all correct, it's just that you need this in your migration:
.field("updated_at", .string)
The documentation should probably make that more explicit TBH. You have to be paying pretty close attention to notice the "type = String" column and also understand the implications of that.
@tanner0101 Yeah, I immediately noticed my error, edited the comment, then deleted it (sure wish GH would send out the edits). 🙃
after a decision to change the database from sqlite to Postgres I have this issue, all the code work fine with sqlite but when I use Postgres to create a user for example I have this issue
my user model