Default Value Now()

I try to add a new field with now() as default value… i have an error…maybe the quote generated

exports.up = function(knex) {
return knex.schema
.table(‘tdl_boxchecked’, function (table) {
table.datetime(‘datecrea’).defaultTo(‘now()’);
})

};

Community Page
Last updated: