New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create items in collection with both date_created
and date_updated
system fields
#11446
Comments
I am experiencing the same issue. With the identical configuration @aliemba describes, reproduce as follows:
|
I can't seem to reproduce this on a fresh MySQL Server 8.0.28, here's a short clip: DIxErZPNBy.mp4@aliemba would you mind providing the following:
@jasloe just to be sure, are you testing on an existing or fresh install/db? Would you mind answering the questions above as well? Thanks! |
DB_CHARSET is not set in the env vile
Versions this occurs on for me 9.4.3 works - but if i upgrade to 9.5.1 i fails (same db install): UPDATE And this works! So this seems related to mariadb (probably 15.1) both as a fresh directus install and when doing an upgrade |
@aliemba ahh gotcha. I was totally fixated in #11069 which is likely the cause of this issue and ended up missing the exact sentence in your screenshot 🤦♂️ Thanks again for the update in that this might be something specific to MariaDB instead. It should be With that said, @Oreilles any thoughts on what is happening here? |
This comment was marked as resolved.
This comment was marked as resolved.
The warnings about table collations not matching the database default appears to be because when creating a I haven't been able to replicate the issue on a fresh install on MariaDB 10.7 and after following the exact steps mentioned. Edit: can't replicate either on 10.5.13. @aliemba could you try to reproduce the issue, but setting |
@Oreilles here is the part from the log - when I press save. 0|directus | 17:59:17 🔍 [0.452ms] select Not much to work with. This is an 9.4.3 (that works) i upgrade to 9.5.1 - create a new collection - tick all the "extras" - and create an item in the collection. If I add an item (record) to an existing collection - it works fine. Seems related to newly created collections with the "sort + updated_by and so on" |
Ok, I've been able to replicate the issue. You said in your original report that your only checked
|
user_created
and user_updated
system fields
user_created
and user_updated
system fieldsdate_created
and date_updated
system fields
Late to the party. Confirming @Oreilles refinement of the initial report, both My config includes the latest from No New to Directus (and node, in general) and not sure where logs live but I'll look into it. Meantime,
|
Preflight Checklist
Describe the Bug
Can't create records in collection with both
user_created
anduser_updated
To Reproduce
date_created
anddate_updated
system fieldsI tested this on two different dbs; mysql and mariadb - both with the same result.
Errors Shown
What version of Directus are you using?
9.5.1
What version of Node.js are you using?
12.21.0
What database are you using?
Mysql
What browser are you using?
Chrome
What operating system are you using?
Ubuntu
How are you deploying Directus?
locally
The text was updated successfully, but these errors were encountered: