|
7 | 7 | "time" |
8 | 8 |
|
9 | 9 | "github.com/go-gorp/gorp/v3" |
10 | | - "github.com/gobuffalo/packr/v2" |
11 | 10 | _ "github.com/mattn/go-sqlite3" |
12 | 11 | . "gopkg.in/check.v1" |
13 | 12 | ) |
@@ -162,39 +161,6 @@ func (s *SqliteMigrateSuite) TestAssetMigrate(c *C) { |
162 | 161 | c.Assert(id, Equals, int64(1)) |
163 | 162 | } |
164 | 163 |
|
165 | | -func (s *SqliteMigrateSuite) TestPackrMigrate(c *C) { |
166 | | - migrations := &PackrMigrationSource{ |
167 | | - Box: packr.New("migrations", "test-migrations"), |
168 | | - } |
169 | | - |
170 | | - // Executes two migrations |
171 | | - n, err := Exec(s.Db, "sqlite3", migrations, Up) |
172 | | - c.Assert(err, IsNil) |
173 | | - c.Assert(n, Equals, 2) |
174 | | - |
175 | | - // Has data |
176 | | - id, err := s.DbMap.SelectInt("SELECT id FROM people") |
177 | | - c.Assert(err, IsNil) |
178 | | - c.Assert(id, Equals, int64(1)) |
179 | | -} |
180 | | - |
181 | | -func (s *SqliteMigrateSuite) TestPackrMigrateDir(c *C) { |
182 | | - migrations := &PackrMigrationSource{ |
183 | | - Box: packr.New(".", "."), |
184 | | - Dir: "./test-migrations/", |
185 | | - } |
186 | | - |
187 | | - // Executes two migrations |
188 | | - n, err := Exec(s.Db, "sqlite3", migrations, Up) |
189 | | - c.Assert(err, IsNil) |
190 | | - c.Assert(n, Equals, 2) |
191 | | - |
192 | | - // Has data |
193 | | - id, err := s.DbMap.SelectInt("SELECT id FROM people") |
194 | | - c.Assert(err, IsNil) |
195 | | - c.Assert(id, Equals, int64(1)) |
196 | | -} |
197 | | - |
198 | 164 | func (s *SqliteMigrateSuite) TestMigrateMax(c *C) { |
199 | 165 | migrations := &FileMigrationSource{ |
200 | 166 | Dir: "test-migrations", |
|
0 commit comments