DT
Drizzle TeamMd Jahidul Islam milon
onUpdate
updatedAt: timestamp('updated_at', { mode: 'date', precision: 3 })
.defaultNow()
.$onUpdate(() => sql(now() AT TIME ZONE 'UTC'))
.notNull(),
can we return
sql
from $onUpdate? $onUpdate(() => sql(now() AT TIME ZONE 'UTC')) this?MJI
Md Jahidul Islam milon•19d ago
i wanted to make sure we are always storing utc value, thats why wanted to return sql.
instead of new Date()
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More PostsStruggling with subqueriesI want to basically do this query in drizzle:
SELECT o.id, o.date, t.currency
FROM "Operations" o
LENot clear what happens during migrateI have a sandbox project and have properly created a migrate that created the initial schema, and apmax connections time out```typescript
import { Injectable, Scope } from '@nestjs/common';
import { Pool, PoolConfig } from 'CI/CD check if schema matches databaseHi, is there a way use drizzle-kit or drizzle itself to check if the database structure matches the