Malformed migration file

For some reason, when running migrations on the latest versions of drizzle-kit and drizzle-orm, it fails with data is malformed on most of my previous migrations' metadata:
migrations/meta/0002_snapshot.json data is malformed
migrations/meta/0003_snapshot.json data is malformed
migrations/meta/0004_snapshot.json data is malformed
migrations/meta/0005_snapshot.json data is malformed
migrations/meta/0006_snapshot.json data is malformed
migrations/meta/0007_snapshot.json data is malformed
migrations/meta/0008_snapshot.json data is malformed
migrations/meta/0009_snapshot.json data is malformed
migrations/meta/0010_snapshot.json data is malformed
migrations/meta/0011_snapshot.json data is malformed
migrations/meta/0012_snapshot.json data is malformed
migrations/meta/0013_snapshot.json data is malformed
migrations/meta/0014_snapshot.json data is malformed
migrations/meta/0015_snapshot.json data is malformed
migrations/meta/0016_snapshot.json data is malformed
migrations/meta/0017_snapshot.json data is malformed
migrations/meta/0018_snapshot.json data is malformed
migrations/meta/0019_snapshot.json data is malformed
migrations/meta/0002_snapshot.json data is malformed
migrations/meta/0003_snapshot.json data is malformed
migrations/meta/0004_snapshot.json data is malformed
migrations/meta/0005_snapshot.json data is malformed
migrations/meta/0006_snapshot.json data is malformed
migrations/meta/0007_snapshot.json data is malformed
migrations/meta/0008_snapshot.json data is malformed
migrations/meta/0009_snapshot.json data is malformed
migrations/meta/0010_snapshot.json data is malformed
migrations/meta/0011_snapshot.json data is malformed
migrations/meta/0012_snapshot.json data is malformed
migrations/meta/0013_snapshot.json data is malformed
migrations/meta/0014_snapshot.json data is malformed
migrations/meta/0015_snapshot.json data is malformed
migrations/meta/0016_snapshot.json data is malformed
migrations/meta/0017_snapshot.json data is malformed
migrations/meta/0018_snapshot.json data is malformed
migrations/meta/0019_snapshot.json data is malformed
The logs are pretty bare, is there a way to get more detail? I updated both orm and kit and changed a few things across my app's types and queries (spanning multiple commits) before trying to run a migration so going back to the previous versions is not really an option as it would imply undoing all that :/
4 Replies
iolyd
iolydOP12mo ago
Ah nvm, I think its related to the fact I was using a pkg patch for https://github.com/drizzle-team/drizzle-orm/issues/636 and haven't repatched after updating so the patched-in schemaTo props are unexpected in the metadata
GitHub
[BUG]: drizzle-kit generates incorrect foreign key references to a ...
What version of drizzle-orm are you using? 0.26.1 What version of drizzle-kit are you using? 0.18.1 Describe the Bug I have this file that has two schemas, iam and chat. The iam scheme has users ta...
Braveheart
Braveheart12mo ago
im getting this
No description
Braveheart
Braveheart12mo ago
No description
Braveheart
Braveheart12mo ago
just delete everything inc the dev db and start again?
Want results from more Discord servers?
Add your server