introspect not finding tables for pg database
Hi all.
Contributing to an OSS project https://github.com/codu-code/codu and we are migrating from prisma to drizzle.
We have built the drizzle schema manually but its not 100% correct as we are having issues migrating some of our DB queries.
Ideally we would like to have drizzle kit create the schema definition for us using
However when we run this, it ignores the tables and only pulls the enums from our PG DB and not the tables. This creates the following schema
We have 17 tables in our DB and would like these and there relations to be pulled into the schema file.
Repro Steps
Contributing to an OSS project https://github.com/codu-code/codu and we are migrating from prisma to drizzle.
We have built the drizzle schema manually but its not 100% correct as we are having issues migrating some of our DB queries.
Ideally we would like to have drizzle kit create the schema definition for us using
However when we run this, it ignores the tables and only pulls the enums from our PG DB and not the tables. This creates the following schema
We have 17 tables in our DB and would like these and there relations to be pulled into the schema file.
Repro Steps
- mkdir codu
- cd codu
- git clone https://github.com/codu-code/codu.git
- Run
- Look at the README to learn our to populate the .env file. The sample.env will give you the DB creds you need. Just rename it from sample.env -> .env
- Run
- Run
- Add to drizzle.config,ts file
- Run
GitHub
Codú's open-source codebase. A space for coders. Visit our community! - GitHub - codu-code/codu: Codú's open-source codebase. A space for coders. Visit our community!
GitHub
Codú's open-source codebase. A space for coders. Visit our community! - GitHub - codu-code/codu: Codú's open-source codebase. A space for coders. Visit our community!