Are you gonna add support for the timestamp type?
Cause now I get the following exception when trying to modify a column of the timestamp type.
Else, how to work around it?
[Doctrine\DBAL\DBALException]
Unknown column type "timestamp" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with \Doctrine\DB
AL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrine
TypeMapping() or have your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.
TIMESTAMP is a MySQL-specific type that we're not going to support. You will most probably need a custom type, or just use a DATETIME instead.
Just saw this now, however already made the pull request for MySQL support of the Timestamp type.
Might just make it into a custom type instead which people using MySQL might wanna add.
Closing that PR - please re-submit to https://github.com/beberlei/doctrineextensions if interested (that repo contains MySQL-specific stuff)
As far as I'm aware, timestamp isn't _"MySQL-Specific"_ It's used in MariaDB, PostgreSQL, Transact-SQL, and Oracle as well.
It has custom formats on all these platforms, and specifically the MySQL one should never really be used.
Can we rediscuss "should never really be used"? In Mysql, the only way to pull the time and date out in the mysql server's current time zone is to use the timestamp or timestamps. The problem is I don't need to add a create and an updated stamp.
the only way to pull the time and date out in the mysql server's current time zone is to use the timestamp or timestamps
Please save date and time by providing the timezone, if required: using the storage server's defaults is just a recipe for more confusion between application and storage.
Note that Postgres also has timestamptz type which you can transparently (except schema introspection) use with datetimetz_immutable.
Most helpful comment
As far as I'm aware,
timestampisn't _"MySQL-Specific"_ It's used in MariaDB, PostgreSQL, Transact-SQL, and Oracle as well.