drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.47k stars 486 forks source link

[BUG]: extensionsFilters: ['postgis'] still trying to delete spatial_ref_sys #2464

Closed alexcroox closed 3 weeks ago

alexcroox commented 3 weeks ago

What version of drizzle-orm are you using?

0.31.0

What version of drizzle-kit are you using?

0.22.1

Describe the Bug

I have the following drizzle.config keys:

dialect: 'postgresql',
extensionsFilters: ['postgis']

But when I run drizzle-kit push I get the following:

Warning Found data-loss statements: · You're about to delete spatial_ref_sys table with 8500 items

Expected behavior

Is there a config key to specify tables to always ignore?

Environment & setup

No response

AndriiSherman commented 3 weeks ago

fixing

AndriiSherman commented 3 weeks ago

Should be fixed in drizzle-kit@0.22.6