From d5ca4395ac8b20d6d63d10456e87e9607c1be221 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 17 Nov 2017 19:53:56 -0500 Subject: [PATCH] Move to gorp v2 This removes the following error, caused by the MySQL Dialect using a 'varchar' for all columns over 256 characters in length, instead of 'text' for the largest: 2017/11/17 22:41:33 common_test.go:208: Error 1074: Column length too big for column 'Lua' (max = 21844); use BLOB or TEXT instead --- internal/db/db.go | 2 +- internal/handlers/handlers.go | 2 +- internal/handlers/tx.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/db/db.go b/internal/db/db.go index 8622af0..ad3ea78 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -8,7 +8,7 @@ import ( _ "github.com/go-sql-driver/mysql" _ "github.com/lib/pq" _ "github.com/mattn/go-sqlite3" - "gopkg.in/gorp.v1" + "gopkg.in/gorp.v2" "log" "strings" ) diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index b330ed6..67f5672 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -1,7 +1,7 @@ package handlers import ( - "gopkg.in/gorp.v1" + "gopkg.in/gorp.v2" "log" "net/http" "path" diff --git a/internal/handlers/tx.go b/internal/handlers/tx.go index ae19a4b..716abf0 100644 --- a/internal/handlers/tx.go +++ b/internal/handlers/tx.go @@ -2,7 +2,7 @@ package handlers import ( "database/sql" - "gopkg.in/gorp.v1" + "gopkg.in/gorp.v2" "strings" )