Comments (1)
For anyone Googling this (like me), a workaround is to change:
.$onUpdateFn(() => sql`now()`),
to
.$onUpdateFn(() => new Date()),
Related:
#2212
from drizzle-orm.
Related Issues (20)
- [BUG]: .default() does not work on boolean pg types
- [BUG]: [SQLITE] Push command show SQL to apply with no schema changes HOT 3
- [BUG]: SQLite migration generation shows lack of support for "Set not null to column" when the schema modification do not need it
- [BUG]: Constant problem with parsing Xata xata_id custom property HOT 1
- [FEATURE]: Support data migrations independent of schema change HOT 2
- [BUG]:ON DELETE cascade not working HOT 4
- [BUG]: Implicit sequences are not tracked in migrations
- [BUG]: boolean mode not working with prepared statements (bettersqlite)
- [FEATURE]: REGEXP SUPPORT
- [BUG]: Drizzle-kit does not obey composite primary key order when generating SQL (relevant for SQLite)
- [BUG]: drizzle-kit push reads all files in schema folder instead of only index.ts
- [BUG]: Cannot chain methods to type `db.select()`
- [BUG]: Migrations dropping tables does not consider dependents
- [FEATURE]: Use a schema language abstraction.
- [FEATURE]: Support for TIDB AUTO_RANDOM primary keys HOT 1
- [BUG]:
- [FEATURE]:select from json
- [BUG]:Schema Changes Not Detected When Adding or Removing .notNull()
- [BUG]: DatabaseErrorException: ERROR: operator does not exist: uuid = text; Hint: No operator matches the given name and argument types. You might need to add explicit type casts.; Position: 54; SQLState: 42883
- [BUG]: drizzle-kit migrate hangs infinitely
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drizzle-orm.