mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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"
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
package handlers
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"gopkg.in/gorp.v1"
 | 
			
		||||
	"gopkg.in/gorp.v2"
 | 
			
		||||
	"log"
 | 
			
		||||
	"net/http"
 | 
			
		||||
	"path"
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ package handlers
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"database/sql"
 | 
			
		||||
	"gopkg.in/gorp.v1"
 | 
			
		||||
	"gopkg.in/gorp.v2"
 | 
			
		||||
	"strings"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user