halvardssm / deno-nessie

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
MIT License
527 stars 31 forks source link

Rollback using nessie v2 wiped my whole database #123

Closed richardanaya closed 3 years ago

richardanaya commented 3 years ago

the command:

deno run -A --unstable https://deno.land/x/nessie/cli.ts rollback

Screen Shot 2021-05-26 at 9 08 52 PM

in your v2 documentation you say it should only rollback 1 by default

Screen Shot 2021-05-26 at 9 10 56 PM
halvardssm commented 3 years ago

Hi @richardanaya ! Good thing you caught this! I wonder why the tests didn't catch this, but it seems like they are due for an improvement! I will get a hotfix out for this today 💪🏻

halvardssm commented 3 years ago

Released version 2.0.0-rc3! It should be fixed now, but let me know if you are still experiencing the issue

richardanaya commented 3 years ago

Verified fixed, and checked the other options too :)