bailing out on missing _ghc table on failure to writing to it

This commit is contained in:
Shlomi Noach 2019-08-01 15:19:55 +03:00
parent 1a45b5fffc
commit 9aef2707ea

View File

@ -290,6 +290,7 @@ func (this *Applier) WriteChangelog(hint, value string) (string, error) {
sql.EscapeName(this.migrationContext.GetChangelogTableName()),
)
_, err := sqlutils.ExecNoPrepare(this.db, query, explicitId, hint, value)
this.migrationContext.PanicAbortIfTableError(err)
return hint, err
}