-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description of the bug
When creating the tables in my MySQL Database, for some reason the created_at and visited_at are assigned the type "timestamp".
According to the code (and Error Message) they are supposed to have the type DateTime though.
This produces the following Error message in the API:
2025-06-12T10:36:49.472793Z ERROR crabfit_api::errors: e=DbErr(Query(SqlxError(ColumnDecode { index: "\"created_at\"", source: "mismatched types; Rust type `core::option::Option<chrono::naive::datetime::NaiveDateTime>` (as SQL type `DATETIME`) is not compatible with SQL type `TIMESTAMP`" })))
To reproduce
- Run API using sql-adaptor
- Use empty MySQL Database
- Try to create an event using the frontend
Expected behavior
The event should be created.
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working