Database Manager: using git to revert a change results in a corruption in the migration directory

What if Wappler does not have a database change to revert because it failed to make the change? See Database Manager: changing the name of a table breaks the database manager