I insert the field like this:
$table->timestamp('added_on')->default('CURRENT_TIMESTAMP'),
but in SQLite the default value is 'CURRENT_TIMESTAMP' and it does not work (does not replace with the current date). It is necessary that the field had the value CURRENT_TIMESTAMP, then it will work. Can this be done in Laravel?
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2DTFOec
via IFTTT
Aucun commentaire:
Enregistrer un commentaire