Remove dependency on sqlite
@@ -10,7 +10,6 @@ import (
"github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
"github.com/lib/pq"
- "github.com/mattn/go-sqlite3"
"github.com/sirupsen/logrus"
"github.com/theupdateframework/notary/tuf/data"
)
@@ -49,10 +48,6 @@ func translateOldVersionError(err error) error {
if err.Code == "23505" {
return ErrOldVersion{}
}
- case sqlite3.Error:
- if err.ExtendedCode == sqlite3.ErrConstraintUnique {
- return ErrOldVersion{}
- }
}
return err
}
