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
2017-10-26 09:38:02 -07:00
committed by GitHub

View File

@@ -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 {