From 52ee6fa5be91b526ada56703a4479e9db310eba5 Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Sat, 20 May 2017 15:46:49 -0400 Subject: [PATCH] update varchar to 255 for the unique value to work for the migrations table. --- store/datastore/ddl/migrate.go | 2 +- store/datastore/ddl/mysql/ddl_gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/datastore/ddl/migrate.go b/store/datastore/ddl/migrate.go index 2b716222..0002d00c 100644 --- a/store/datastore/ddl/migrate.go +++ b/store/datastore/ddl/migrate.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) ) ` diff --git a/store/datastore/ddl/mysql/ddl_gen.go b/store/datastore/ddl/mysql/ddl_gen.go index 1bc3d923..cc4e9f3b 100644 --- a/store/datastore/ddl/mysql/ddl_gen.go +++ b/store/datastore/ddl/mysql/ddl_gen.go @@ -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) ) `