Skip to content
Snippets Groups Projects
Commit c1ddd771 authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

fix deprecated use of mysql.NullTime

parent e0457c2f
No related branches found
No related tags found
No related merge requests found
package versionrepo
import (
"database/sql"
"sort"
"strings"
"github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
"github.com/oidc-mytoken/server/internal/db"
"github.com/oidc-mytoken/server/internal/db/dbmigrate"
......@@ -32,8 +32,8 @@ func SetVersionAfter(tx *sqlx.Tx, version string) error {
// UpdateTimes is a type for checking if the db migration commands for different mytoken version have been executed
type UpdateTimes struct {
Version string
Before mysql.NullTime `db:"bef"`
After mysql.NullTime `db:"aft"`
Before sql.NullTime `db:"bef"`
After sql.NullTime `db:"aft"`
}
// DBVersionState describes the version state of the db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment