Closed lightyaer closed 1 year ago
Just found an issue. Fixing that
Just to double-check, did you make any other changes besides renaming?
Nope, just the renaming changes, as seen in the image. plural to singular naming convention.
should be fixed in drizzle-kit@0.19.13
@AndriiSherman, I maybe wrong on just the renaming changes,
This still happens on drizzle-kit@0.19.13
, I get the same error.
Now, that there are 4 tables in db, device
, log
, space
& user
(user wasn't renamed, hence it didn't appear in the first comment).
I also deleted the migrations
folder(I know I shouldn't have done this, but this is a dummy project),
Now, when I remove all tables from schema.ts
except user
, I still get the same columns of undefined error.
Humble Suggestion: Maybe, we could look into introspecting the db before pushing, if thats not too much, and have it display the conflicts/errors, instead of columns of undefined error.
Let me know, If this can be a good-first-issue, I can offer some help, or maybe guide me into fixing this.
What version of
drizzle-orm
are you using?0.28.2
What version of
drizzle-kit
are you using?0.19.12
Describe the Bug
While planning schema, had to rename a few tables, and encountered this error. On turso db, while running
drizzle-kit push:sqlite
Expected behavior
The command
drizzle-kit push:sqlite
to work flawlessly.Environment & setup
On my local machine, with a remote turso db.