Permalink
Browse files

update varchar to 255 for the unique value to work for the migrations…

… table.
  • Loading branch information...
josmo committed May 20, 2017
1 parent 3f3abe8 commit 52ee6fa5be91b526ada56703a4479e9db310eba5
Showing with 2 additions and 2 deletions.
  1. +1 −1 store/datastore/ddl/migrate.go
  2. +1 −1 store/datastore/ddl/mysql/ddl_gen.go
@@ -99,7 +99,7 @@ INSERT IGNORE INTO migrations (name) VALUES
var createMigrationsTable = `
CREATE TABLE IF NOT EXISTS migrations (
name VARCHAR(512)
name VARCHAR(255)
,UNIQUE(name)
)
`
@@ -150,7 +150,7 @@ func selectCompleted(db *sql.DB) (map[string]struct{}, error) {
var migrationTableCreate = `
CREATE TABLE IF NOT EXISTS migrations (
name VARCHAR(512)
name VARCHAR(255)
,UNIQUE(name)
)
`

0 comments on commit 52ee6fa

Please sign in to comment.