mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Database not in sync ( ALTER TABLE .... NOT NULL) #6527
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @procraste on GitHub (Aug 25, 2020).
Hi there,
I have the entity Reserver with custom types ( using carbon datetime library ) in it:
validate-schemgives me "[OK] The mapping files are correct." but not in sync with database.--dump-sqlgives me:I can run directly the sql command and it gives me no error. The field are already not null in database.
This looks like an old bug with mariaDB. In fact, i fist test it with an old version of mariaDB.
But i tried also on a mysql 8 system and get the same error.
Here's how i configure the csutom carbon type:
Everything else seems to work fine, i can retrieve/update/create entities.
Do you think it can be safe keeping this configuration ?
I can provide any precision if needed.
Thanks.