(c *C)
| 195 | } |
| 196 | |
| 197 | func (s *SqliteMigrateSuite) TestMigrateVersionInt2(c *C) { |
| 198 | migrations := &FileMigrationSource{ |
| 199 | Dir: "test-migrations", |
| 200 | } |
| 201 | |
| 202 | // Executes migration with target version 2 |
| 203 | n, err := ExecVersion(s.Db, "sqlite3", migrations, Up, 2) |
| 204 | c.Assert(err, IsNil) |
| 205 | c.Assert(n, Equals, 2) |
| 206 | |
| 207 | id, err := s.DbMap.SelectInt("SELECT COUNT(*) FROM people") |
| 208 | c.Assert(err, IsNil) |
| 209 | c.Assert(id, Equals, int64(1)) |
| 210 | } |
| 211 | |
| 212 | func (s *SqliteMigrateSuite) TestMigrateVersionIntFailedWithNotExistingVerion(c *C) { |
| 213 | migrations := &FileMigrationSource{ |
nothing calls this directly
no test coverage detected