Using drizzle-kit push only works the first time (when database is empty)

I am using drizzle with supabase. I successfully pushed my schema for the first time but when updating it with new tables it hangs down in Pulling schema from database... To solve it I have to delete all the tables or intentionally make an error somewhere in drizzle config. Is this my issue or drizzle issue? I have been seeing similar cases but with no solution yet. versions "drizzle-orm": "^0.34.1" "drizzle-kit": "^0.25.0"
drizzle.config.ts
import { type Config } from "drizzle-kit";

import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: env.DATABASE_URL,
},
tablesFilter: ["test_*"],
} satisfies Config;
drizzle.config.ts
import { type Config } from "drizzle-kit";

import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: env.DATABASE_URL,
},
tablesFilter: ["test_*"],
} satisfies Config;
1 Reply
Firee
Firee3w ago
Anyone experiencing the same issue? Update with this node_modules\drizzle-kit\bin.cjs:19320 if (column7.column_default.endsWith("[]"))
TypeError: Cannot read properties of undefined (reading 'endsWith') New error. It happens on drizzle-kit/bin.cjs
Want results from more Discord servers?
Add your server