Merge pull request #2049 from josmo/fix-mysql-migrate
update varchar to 255 for the unique value to work for the migrations…
This commit is contained in:
commit
3b5efe1ba1
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ INSERT IGNORE INTO migrations (name) VALUES
|
||||||
|
|
||||||
var createMigrationsTable = `
|
var createMigrationsTable = `
|
||||||
CREATE TABLE IF NOT EXISTS migrations (
|
CREATE TABLE IF NOT EXISTS migrations (
|
||||||
name VARCHAR(512)
|
name VARCHAR(255)
|
||||||
,UNIQUE(name)
|
,UNIQUE(name)
|
||||||
)
|
)
|
||||||
`
|
`
|
||||||
|
|
|
@ -150,7 +150,7 @@ func selectCompleted(db *sql.DB) (map[string]struct{}, error) {
|
||||||
|
|
||||||
var migrationTableCreate = `
|
var migrationTableCreate = `
|
||||||
CREATE TABLE IF NOT EXISTS migrations (
|
CREATE TABLE IF NOT EXISTS migrations (
|
||||||
name VARCHAR(512)
|
name VARCHAR(255)
|
||||||
,UNIQUE(name)
|
,UNIQUE(name)
|
||||||
)
|
)
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in a new issue