Timestamp mode as date while drizzle-kit pull

Is it possible to specify the timestamp mode while pull command?
// I need so
createdAt: timestamp("created_at", {
mode: 'date',
}).defaultNow(),
// By default this
createdAt: timestamp("created_at", {
mode: 'string',
}).defaultNow(),
// I need so
createdAt: timestamp("created_at", {
mode: 'date',
}).defaultNow(),
// By default this
createdAt: timestamp("created_at", {
mode: 'string',
}).defaultNow(),
2 Replies
nu
nu14h ago
Hi. Did you find a solution to this? My original schema has mode date but on pull the timestamp has mode string. Strange
TOSL
TOSL13h ago
Not currently configurable as far as I can tell. There is an open issue about this

Did you find this page helpful?