Skip to content

Commit

Permalink
update varchar to 255 for the unique value to work for the migrations…
Browse files Browse the repository at this point in the history
… table.
  • Loading branch information
josmo committed May 20, 2017
1 parent 3f3abe8 commit 52ee6fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/datastore/ddl/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
`
2 changes: 1 addition & 1 deletion store/datastore/ddl/mysql/ddl_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
`
Expand Down

0 comments on commit 52ee6fa

Please sign in to comment.