error while applying the migrations
Hey folks here is my code
https://mystb.in/37323971356998692b
currently I have set
DATABASE_URL
to file:./dev.sqlite
after generating the migrations using the drizzle-kit generate
when I apply the migrations drizzle-kit migrate
I get the following error
can anyone help me with this2 Replies
there is no DATE in sqlite, you could provide a runtime default like this:
integer("createdAt", { mode: "timestamp" }).$default(() => new Date())
but sqlite has CURRENT_TIMESTAMP I replaced DATE function with this
and it worked