mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Add SQLite support
This commit is contained in:
parent
80eec3fe7b
commit
d5f862c00b
6 changed files with 303 additions and 6 deletions
|
|
@ -38,6 +38,7 @@ func testURLs(t *testing.T) []*url.URL {
|
|||
return []*url.URL{
|
||||
postgresTestURL(t),
|
||||
mySQLTestURL(t),
|
||||
sqliteTestURL(t),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -155,7 +156,7 @@ func testRollbackCommandURL(t *testing.T, u *url.URL) {
|
|||
|
||||
err = db.QueryRow("select count(*) from users").Scan(&count)
|
||||
require.NotNil(t, err)
|
||||
require.Regexp(t, "(does not exist|doesn't exist)", err.Error())
|
||||
require.Regexp(t, "(does not exist|doesn't exist|no such table)", err.Error())
|
||||
}
|
||||
|
||||
func TestRollbackCommand(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue