You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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'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.
The text was updated successfully, but these errors were encountered: