Comments (2)
will it be possibly to add a .null() chain method when defining a model so you can explicitly tell the sql generater to generate the correct SQL code?
only workaround for the SQL side of code is to manually to a ctrl + find all then replace the timestamps allowed to be null to have the "NULL" keyword after the timestamp datatype.
currently the solutions given ONLY caters for the typescript when coding and does NOT generate the correct SQL code.
i am unable to modify my live server environment's database settings since its in a hosted renting environment by asurahosting.
when i run SELECT VERSION() in phpmyadmin i get "mariadb" in which the sql syntax "timestamp default null" is invalid, and the correct code should be "timestamp null default null"
from drizzle-orm.
Related Issues (20)
- [FEATURE]: Merge conflicting migrations
- [FEATURE]: drizzle-kit migration missing relevation info on unsupported SQLite feature
- [FEATURE]: Multiple union / unionAll
- [FEATURE]: Eslint flat config
- [BUG]: using any Drizzle-zod function in Workerd's (CFW runtime) would crash HOT 1
- [Feature Request]: drizzle-zod output to static files HOT 2
- [BUG]: Partial Insert returning expected 0 arguments
- [BUG]: issue while building the project HOT 1
- [FEATURE]: explain analyse
- [BUG]: Relations inconsistent to what defined in schema and what is generated.
- [BUG]: Dark Themes Stopped Working HOT 3
- [BUG]:
- [BUG]: query builder does not get any tables when upgrading to anything higher 0.29 HOT 1
- [BUG]: `drizzle-kit generate` doesn't pick up changes in schema 🤔 HOT 2
- [BUG]: drizzle-kit generate for unique index produces incorrect migration HOT 1
- [BUG]: Index migration query is generated with parameter HOT 1
- [BUG]: BLOB json values are not being stringified before insert. HOT 2
- [BUG]: Drizzle migration does not rollback if it fails
- [BUG]: Execute Alter Sequence
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.