(c *C)
| 180 | } |
| 181 | |
| 182 | func (s *SqliteMigrateSuite) TestMigrateVersionInt(c *C) { |
| 183 | migrations := &FileMigrationSource{ |
| 184 | Dir: "test-migrations", |
| 185 | } |
| 186 | |
| 187 | // Executes migration with target version 1 |
| 188 | n, err := ExecVersion(s.Db, "sqlite3", migrations, Up, 1) |
| 189 | c.Assert(err, IsNil) |
| 190 | c.Assert(n, Equals, 1) |
| 191 | |
| 192 | id, err := s.DbMap.SelectInt("SELECT COUNT(*) FROM people") |
| 193 | c.Assert(err, IsNil) |
| 194 | c.Assert(id, Equals, int64(0)) |
| 195 | } |
| 196 | |
| 197 | func (s *SqliteMigrateSuite) TestMigrateVersionInt2(c *C) { |
| 198 | migrations := &FileMigrationSource{ |
nothing calls this directly
no test coverage detected