Closed aprilmintacpineda closed 3 years ago
Internal ticket number is LABS-20
Hi @aprilmintacpineda - sorry you're having this experience. FSM applies one migration at a time as a default, in order to prevent unexpected behavior.
This is why the tool output:
--------- Task ----------
apply 1 migrations
You can also pass it the number of migrations to apply, or "all" to apply all outstanding migrations, e.g., npx @fauna-labs/fauna-schema-migrate apply all
. Does that work for your case?
If you're looking for a tool that's more likely to go into production/supported status, I'd suggest you check out our Serverless Framework plugin and example of how to use it.
You can also pass it the number of migrations to apply, or "all" to apply all outstanding migrations, e.g., npx @fauna-labs/fauna-schema-migrate apply all. Does that work for your case?
I can't verify if this will work because I've already manually tried to migrate them all. However if that is true, then running it multiple times should do the trick BUT unfortunately, that didn't do it, that's why I had to manually do the work. I'll update my script to that and come back later when I can verify it...
Sounds good; thanks for the follow-up.
I'm going to close this for now. If it doesn't work for you, please re-open.
I'm doing migrations and I've run it several times but for some reason, it does not apply all migration BUT it will say successful, which means it's lying when your tools are lying you are bound to make PRODUCTION BUGS.
Recomendation:
Instead of displaying:
EDIT:
After about an hour of debugging why this is happening, I could not find the reason so I ended up giving up and needing to manually create the
migrations
documents and to manually run each migrations using the shell.