Moved var to const
This commit is contained in:
@@ -21,7 +21,8 @@ import (
|
|||||||
"github.com/scylladb/gocqlx/qb"
|
"github.com/scylladb/gocqlx/qb"
|
||||||
)
|
)
|
||||||
|
|
||||||
var infoSchema = `CREATE TABLE IF NOT EXISTS gocqlx_migrate (
|
const (
|
||||||
|
infoSchema = `CREATE TABLE IF NOT EXISTS gocqlx_migrate (
|
||||||
name text,
|
name text,
|
||||||
checksum text,
|
checksum text,
|
||||||
done tinyint,
|
done tinyint,
|
||||||
@@ -29,8 +30,8 @@ var infoSchema = `CREATE TABLE IF NOT EXISTS gocqlx_migrate (
|
|||||||
end_time timestamp,
|
end_time timestamp,
|
||||||
PRIMARY KEY(name)
|
PRIMARY KEY(name)
|
||||||
)`
|
)`
|
||||||
|
selectInfo = "SELECT * FROM gocqlx_migrate"
|
||||||
var selectInfo = "SELECT * FROM gocqlx_migrate"
|
)
|
||||||
|
|
||||||
// Info contains information on migration applied on a database.
|
// Info contains information on migration applied on a database.
|
||||||
type Info struct {
|
type Info struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user