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 using knex and I'm trying to set a defaut date that takes in consideration the current date and sum it of one day, so for example the default date for today should be:
I am facing this same issue, i want to set an expire_at column, that sets a future date:
This is the knex code: table.timestamp('expires_at').notNullable().defaultTo(knex.raw('DATE_ADD(?, INTERVAL ? DAY)', [knex.fn.now(), 1]));
I'm using
knex
and I'm trying to set a defaut date that takes in consideration the current date and sum it of one day, so for example the default date for today should be:In my migration file I've added this:
but this return:
The text was updated successfully, but these errors were encountered: