comment typo

This commit is contained in:
Shlomi Noach 2016-12-21 09:23:57 +02:00
parent 171cad2a98
commit 47d8306c0f

View File

@ -131,16 +131,16 @@ func (this *Applier) ValidateOrDropExistingTables() error {
if this.migrationContext.Resurrect { if this.migrationContext.Resurrect {
ghostTableExists := this.tableExists(this.migrationContext.GetGhostTableName()) ghostTableExists := this.tableExists(this.migrationContext.GetGhostTableName())
if !ghostTableExists { if !ghostTableExists {
return fmt.Errorf("--ressurect requested, but ghost table %s doesn't exist. Panicking.", this.migrationContext.GetGhostTableName()) return fmt.Errorf("--resurrect requested, but ghost table %s doesn't exist. Panicking.", this.migrationContext.GetGhostTableName())
} }
changelogTableExists := this.tableExists(this.migrationContext.GetChangelogTableName()) changelogTableExists := this.tableExists(this.migrationContext.GetChangelogTableName())
if !changelogTableExists { if !changelogTableExists {
return fmt.Errorf("--ressurect requested, but changelog table %s doesn't exist. Panicking.", this.migrationContext.GetChangelogTableName()) return fmt.Errorf("--resurrect requested, but changelog table %s doesn't exist. Panicking.", this.migrationContext.GetChangelogTableName())
} }
return nil return nil
} }
// Normal mode (no resurrection)
// Normal mode (no resurrection)
if this.migrationContext.InitiallyDropGhostTable { if this.migrationContext.InitiallyDropGhostTable {
if err := this.DropGhostTable(); err != nil { if err := this.DropGhostTable(); err != nil {
return err return err