Compare commits
No commits in common. "main" and "v1.7.1" have entirely different histories.
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import (
|
|||
|
||||
// Standard
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
|
@ -108,7 +109,7 @@ func (dbase Database) verifySchemaEntry() (err error) { // {{{
|
|||
row = dbase.db.QueryRow(context.Background(), `SELECT version FROM `+dbase.upgrader.schema+`.schema LIMIT 1`)
|
||||
|
||||
err = row.Scan(&version)
|
||||
if err == pgx.ErrNoRows {
|
||||
if err == sql.ErrNoRows {
|
||||
dbase.upgrader.logCallback("initiate version", dbase.DbName)
|
||||
err = dbase.appendSchemaVersion(0)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue