From 7f412fad31f56c7daef90c92e6a290375da3921a Mon Sep 17 00:00:00 2001 From: eslizn Date: Tue, 4 Jun 2019 18:47:44 +0800 Subject: [PATCH] fix #11 BLOB/TEXT column 'key' used in key specification without a key length --- backends/database/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/database/database.go b/backends/database/database.go index ab260e5..5efc70b 100644 --- a/backends/database/database.go +++ b/backends/database/database.go @@ -10,7 +10,7 @@ import ( // Translation is a struct used to save translations into databae type Translation struct { Locale string `sql:"size:12;"` - Key string `sql:"size:4294967295;"` + Key string `sql:"size:256;"` Value string `sql:"size:4294967295"` }