Comments (16)
This issue is reproducible for me in drizzle-kit
version 0.23.0
, 0.23.0-03c18d1
and 0.23.0-21045a0
but does not occur in version 0.22.8
or 0.22.9-92953ac
. So downgrading the version is a temporary workaround.
In all my tests drizzle-orm
is on version 0.32.0
(i guess drizzle-orm
is not used in this process?).
from drizzle-orm.
drizzle-kit: v0.23.0
drizzle-orm: v0.32.0
No config path provided, using default path
Reading config file '/Users/cristonmascarenhas/Documents/projects/trail-backend/drizzle.config.ts'
Pulling from ['public'] list of schemas
Using 'pg' driver for database querying
[✓] 19 tables fetched
[✓] 109 columns fetched
[✓] 2 enums fetched
[✓] 0 indexes fetched
[✓] 14 foreign keys fetched
TypeError: movedTables is not iterable
at applyPgSnapshotsDiff (/Users/cristonmascarenhas/Documents/projects/trail-backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:29346:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async introspectPostgres (/Users/cristonmascarenhas/Documents/projects/trail-backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:126156:42)
at async _Command. (/Users/cristonmascarenhas/Documents/projects/trail-backend/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:131714:7)
from drizzle-orm.
This issue is reproducible for me in
drizzle-kit
version0.23.0
,0.23.0-03c18d1
and0.23.0-21045a0
but does not occur in version0.22.8
or0.22.9-92953ac
. So downgrading the version is a temporary workaround. In all my testsdrizzle-orm
is on version0.32.0
(i guessdrizzle-orm
is not used in this process?).
this fixed it for me too
from drizzle-orm.
I'm having the same issue
❯ npx drizzle-kit introspect
drizzle-kit: v0.23.0
drizzle-orm: v0.32.0
No config path provided, using default path
Reading config file '/Users/redacted/Documents/workspace/redacted/drizzle.config.ts'
Pulling from ['public'] list of schemas
Using 'pg' driver for database querying
[✓] 8 tables fetched
[✓] 46 columns fetched
[✓] 0 enums fetched
[✓] 0 indexes fetched
[✓] 11 foreign keys fetched
TypeError: movedTables is not iterable
at applyPgSnapshotsDiff (/Users/redacted/Documents/workspace/redacted/node_modules/drizzle-kit/bin.cjs:29346:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async introspectPostgres (/Users/redacted/Documents/workspace/redacted/node_modules/drizzle-kit/bin.cjs:126156:42)
at async _Command.<anonymous> (/Users/redacted/Documents/workspace/redacted/node_modules/drizzle-kit/bin.cjs:131714:7)
I did notice that the drizzle/relations.ts
, drizzle/schema.ts
and meta/_journal.json
were created and appear to be correct however.
from drizzle-orm.
I also having the same issue
$ npx drizzle-kit introspect
drizzle-kit: v0.23.0
drizzle-orm: v0.32.0
No config path provided, using default path
Reading config file 'C:\Users\Admin\Desktop\Evitamin\am484\evitstool_full\drizzle.config.ts'
Pulling from ['public'] list of schemas
Using 'pg' driver for database querying
[✓] 339 tables fetched
[✓] 13792 columns fetched
[✓] 16 enums fetched
[✓] 68 indexes fetched
[✓] 1586579 foreign keys fetched
TypeError: movedTables is not iterable
at applyPgSnapshotsDiff (C:\Users\Admin\Desktop\Evitamin\am484\evitstool_full\node_modules.pnpm\[email protected]\node_modules\drizzle-kit\bin.cjs:29346:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async introspectPostgres (C:\Users\Admin\Desktop\Evitamin\am484\evitstool_full\node_modules.pnpm\[email protected]\node_modules\drizzle-kit\bin.cjs:126156:42)
at async _Command. (C:\Users\Admin\Desktop\Evitamin\am484\evitstool_full\node_modules.pnpm\[email protected]\node_modules\drizzle-kit\bin.cjs:131714:7)
from drizzle-orm.
Same error with drizzle-kit introspect
with the latest version.
This is one of the first steps when we migrate from Prisma to Drizzle.
from drizzle-orm.
Same problem here
from drizzle-orm.
I run the same problem after upgrading the drizzle-orm version.
I fixed it by manually updating themigrations/meta/_journal.json
file from
{
"version": "5",
"dialect": "pg",
...
}
to
{
"version": "7",
"dialect": "postgresql",
...
}
Maybe the command drizzle-kit up
can help
from drizzle-orm.
Same error with
drizzle-kit introspect
with the latest version.This is one of the first steps when we migrate from Prisma to Drizzle.
Same here. I want to generate a schema.ts
file using introspect
.
from drizzle-orm.
Same issue on latest version of drizzle/drizzle-kit
from drizzle-orm.
Even I am facing the same error.
from drizzle-orm.
Having the same issue
from drizzle-orm.
Ditto here
from drizzle-orm.
Same here
from drizzle-orm.
Same
from drizzle-orm.
I directly edited bin.cjs
inside my node_modules to check if movedTables
is declared.
OBS: I don't know if this is right, but I was able to generate the schema based on the schemas that were already present in my Postgres.
Code:
![image](https://private-user-images.githubusercontent.com/44513615/350786899-638bb6b8-fc8c-46e0-bb66-5ca29a836013.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzQyNDQsIm5iZiI6MTcyMjEzMzk0NCwicGF0aCI6Ii80NDUxMzYxNS8zNTA3ODY4OTktNjM4YmI2YjgtZmM4Yy00NmUwLWJiNjYtNWNhMjlhODM2MDEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAyMzIyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkMjBkOTBjODkzMGM3ZDlhMjI0Mzc2M2Q0MTkxY2NjNDE2OWFhZjY1NmQzMWNjNzZiNGExZDRiNzMzOGM2NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GO_HCSMJofWkZe8rvi-F6VXZ1zKNFxLMqaHvbgwQc-c)
from drizzle-orm.
Related Issues (20)
- [FEATURE]: Button to copy command line arguments in the Documentation HOT 1
- [BUG]: Select operation returning [] while using ORM but not while using SQL HOT 1
- [BUG]: isTable helper function is not working HOT 1
- [BUG]: Geometry type ignores SRID option
- [FEATURE]: alias of rows to insert with ON DUPLICATE KEY
- [BUG]: PG Numeric inferred as string, but is numeric at runtime HOT 1
- How to fetch one to many relationships using the select api
- [BUG]: raw SQL fields selected from subqueries should not require manually-defined aliases
- [BUG]: Persistent HTTP 400 with Vercel & drizzle-kit
- [Enhancement]: Generated type HOT 1
- [BUG]: Drizzle Studio not print result of `db.selectDistinctOn`
- [BUG]: Documentation is outdated on inArray and notInArray Methods
- Improve Filter Experience in drizzle-studio especially for Enum Columns
- [BUG]: Nullable columns do not exist in insert(table).values() HOT 3
- [FEATURE]: migrations in TypeScript / `drizzle-kit generate --typescript`
- Add support for NoSQL Databases {MongoDB especially}
- [BUG]: drizzle-orm imported operators `eq`, `lt`, etc. unable to recognize left hand "table.column" param while callback syntax works
- [BUG]: Please install latest version of "drizzle-orm" - with latest Drizzle version HOT 2
- [FEATURE]: Add support for range column types
- Trouble with Schema Changes Using drizzle-kit push Command in v0.23.0 HOT 2
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.