Timestamp field with default value on creation
I'm trying to create a timestamp field that defaults to the current timestamp (a "created_at" field).
I've tried ->defaultValue('CURRENT_TIMESTAMP') and ->defaultValue('NOW()') ... both return errors saying it's an invalid default value.
I can't find anything about this situation in the documentation, but it seems like a common enough task that it should be pretty simple ... and I suspect I'm missing something obvious.
Thanks in advance.
Stuck with the same issue, did you find a solution ?
No. I wound up going into the DB directly and creating the table with SQL. A slight inconvenience, but easy enough. It does seem like this should be something Opis is set up for.
I ended up doing the same, thanks for the feedback ;)