Drizzle not creating table
Hello,
Do I need to manually create the tables? I have schema set up but its not creating the tables?
8 Replies
Share your schema.
The most likely reason is because you aren't exporting the tables in your schema.
// Guild Config
I am, It works through
drizzle-kit push
- but I assumed it gets auto created when we start the db.No, you have to push or generate & migrate.
Is it possible to check if the tables exist and then push? Or can I just use push on startup everytime to make sure the tables exists?
Why would need to push on startup everytime? Are you dropping your DB everytime?
Push any time you make changes your schema and you're good to go
No, I just want to make sure the tables exists, even if i create a new table, i want it to sync
Drizzle won't duplicate tables.
okay thats perfect thank you