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()’);
})
};
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()’);
})
};
How exactly and where do you add this? Can you share a screenshot please?