func.now() will translate into the appropriate construct for a given backend,
so server_default=func.now() will do it.
On Oct 15, 2010, at 9:01 PM, Domingo Aguilera wrote:
HI,
I wonder if there's a way to use server_default in Column ( DateTime,
server_default = ...) to make a database
HI,
I wonder if there's a way to use server_default in Column ( DateTime,
server_default = ...) to make a database agnostic current timestamp
as default .
Cheers.
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send email