Comments (2)
I may have experienced the same problem just now. I made some changes to the schema for the app I'm developing and ran the migration command. When I tried to start the app again, Expo Go entirely crashed and returned to the Expo dashboard. Tried a few things, clearing cache, etc. no luck in either Android or iOS simulators.
Fortunately I found your issue when searching for possible causes; sure enough the new migration SQL file contained a multiline comment regarding a .notNull()
I was trying to remove from the schema. I took it out and now Expo successfully starts the app so I can continue working (Thanks to you 🫡 I don't know how long it would have taken me to troubleshoot).
I've really gotten to like Drizzle and would be happy to hear if this bug could be prevented so that other devs won't run into the same problem.
- Expo SDK 51.0.8
- expo-sqlite 14.0.3
- drizzle-orm 0.30.10
from drizzle-orm.
Okay, it seems like the SQL file was in fact the problem.
Specifically, it seems like if there are any multi-line comments in the SQL file, the migration process will crash (and somehow not be catched by the try-catch block and therefore the ROLLBACK
instruction). If I filter out the multi-line comment stmt
blocks using the \n*\/\*
RegEx, it works.
The fact that an empty migration file crashed as well for me seems to have been a cache issue.
I don't know if this is intended behavior, but if it is, it's nowhere documented.
from drizzle-orm.
Related Issues (20)
- [FEATURE]: Manual control migrations
- [BUG]: `drizzle-typebox` fails to map geometry column to type-box schema HOT 1
- [BUG]: drizzle-valibot does not provide types for returned schemas HOT 1
- [BUG]: The function of installation of neon database is was not working HOT 5
- [BUG]: Drizzle-typebox types SQLite real field to string
- [BUG]: Missing `index names` when running `introspect` command [MYSQL]
- [BUG]: Postgis `geometry` query select fails when using `with`
- [BUG]: Schema generation with custom schema not working for mysql
- [BUG]: Issues with nested conditions & placeholders in SQLite query
- [BUG]: `drizzle-kit introspect` produces diffs without underlying schema changes
- [BUG]: Cannot rename table with composite primary keys HOT 3
- [FEATURE]: Track constraints in the type system
- [FEATURE]: explicitly mark a models' column definition as NULL with a ".null()" chain function
- [FEATURE]: SQLITE - Introspect `BOOLEAN` as `integer("...", { mode : "boolean" })`
- [BUG]: Drizzle studio wont run with current versions of orm and kit HOT 1
- [FEATURE]: unit of work
- [BUG]: Error: Cannot find native module 'ExpoSQLiteNext' HOT 1
- [BUG]: Missing Documentation `mapResult`
- [FEATURE]: Consistent Section Tab Selection in docs
- [BUG]: TIMESTAMPS showing up incorrectly on drizzle studio. HOT 1
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.