DaFr33k
DTDrizzle Team
•Created by thdxr on 7/17/2023 in #help
Cannot read properties of undefined (reading 'columns')
To clarify, I didn't check the
__old_push_organization_auth
table for columns before dropping. I'm just assuming it didn't since the new temp table had columns and I was prompted to drop it during the push32 replies
DTDrizzle Team
•Created by thdxr on 7/17/2023 in #help
Cannot read properties of undefined (reading 'columns')
Quick discovery. It seems like some of the
__old_push
tables hang around if the push:sqlite
command fails. Once that happens, the undefined 'columns' error pops up.
After manually dropping the table with the sqlite command line client, the push runs and spits back my actual error (foreign key constraint problem on my end), but after that error, another __old_push
table hangs around again. This time, that table had columns, so I actually got a prompt to drop it when running the push again. What made this complicated is those temp tables (I assume due to naming convention) are hidden in drizzle studio. Maybe this helps some of you get unstuck to see the actual error thrown by the driver.
It seems like there needs to be an error catch in drizzle-kit that cleans up the temp tables used if the underlying driver throws.32 replies
DTDrizzle Team
•Created by thdxr on 7/17/2023 in #help
Cannot read properties of undefined (reading 'columns')
32 replies