(version int64)
| 24 | } |
| 25 | |
| 26 | func (m *MigrationVersion03) ValidUpdate(version int64) error { |
| 27 | if m.Version() > version { |
| 28 | m.isValid = true |
| 29 | return nil |
| 30 | } |
| 31 | m.isValid = false |
| 32 | return errors.New("The target version is higher than the current version.") |
| 33 | } |
| 34 | |
| 35 | func (m *MigrationVersion03) ValidForBackupTableSchema() error { |
| 36 | if !m.isValid { |