Merge pull request #20 from danielsoro/move-var-to-const

Moving var to const for migration's info query and schema
This commit is contained in:
Michał Matczuk authored and GitHub committed 2017-10-26 09:38:02 -07:00
commit 255429a93c
1 file changed
+4 -3
+4 -3
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 {