Moved var to const

This commit is contained in:
Daniel Cunha (soro)
2017-10-25 09:28:13 -02:00
parent a66169d3ba
commit d14aa34200

View File

@@ -21,7 +21,8 @@ import (
"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,
checksum text,
done tinyint,
@@ -29,8 +30,8 @@ var infoSchema = `CREATE TABLE IF NOT EXISTS gocqlx_migrate (
end_time timestamp,
PRIMARY KEY(name)
)`
var selectInfo = "SELECT * FROM gocqlx_migrate"
selectInfo = "SELECT * FROM gocqlx_migrate"
)
// Info contains information on migration applied on a database.
type Info struct {