You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...and later try npx drizzle-kit push, I will get the following:
$ npx drizzle-kit pushNo config path provided, using default 'drizzle.config.ts'Reading config file '/home/vignette/Projects/drizzle-bugreport/drizzle.config.ts'Using 'pg' driver for database querying[✓] Pulling schema from database... Warning Found data-loss statements:· You're about to change bbox column type from real[] to real[4] with 1 itemsTHIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTEDDo you still want to push changes?[x] All changes were aborted
More over, the pulled schema does not contain the array size restrictions. Here's the output of npx drizzle-kit pull's schema.ts:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?^0.36.3
What version of
drizzle-kit
are you using?^0.28.1
Other packages
tsx@4.19.2
Describe the Bug
Apolgies if this has been reported, as I couldn't find it. Using PostgreSQL, and
node-postgres
with drizzle. Specifying the schema as such:...and pushing it with
npx drizzle-kit push
will succeed. However, if I insert anything with the following snippet:...and later try
npx drizzle-kit push
, I will get the following:More over, the pulled schema does not contain the array size restrictions. Here's the output of
npx drizzle-kit pull
'sschema.ts
:The text was updated successfully, but these errors were encountered: