CodingButter-LLC / directus-migrator

A cli tool for migrating directus environments
MIT License
56 stars 15 forks source link

Schema migration claims to have failed #8

Closed ErikBrendel closed 1 year ago

ErikBrendel commented 1 year ago

The schema migration script shows an error, and no error messages. Apparently, Directus returns a 204, and this is interpreted as non-successful. Is this correct behavior? It seems like the schema was applied correctly, so I would expect the script output to reflect that.

We are using Directus 10.1.1

Command:

directus-migrator -s dev -t staging --schema

Output:

2023-05-24 info: Migrating Schema Started
2023-05-24 info: response status: 200
2023-05-24 info: Schema Migration Snapshot Successful
2023-05-24 info: response status: 200
2023-05-24 info: Schema Migration Diff Successful
2023-05-24 info: response status: 204
2023-05-24 error: Schema Migration Failed
CodingButter commented 1 year ago

I believe this has been fixed in my most recent patch.