From edd5bfed26c7ad05ec145ed29625b122e9ecf0ce Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 21 Sep 2018 11:07:03 +0800 Subject: [PATCH] - make weixins.openid nullable. --- business/model/legacy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/legacy.go b/business/model/legacy.go index 018c2e5d0..168d4e654 100644 --- a/business/model/legacy.go +++ b/business/model/legacy.go @@ -3,7 +3,7 @@ package model type WeiXins struct { ID int `orm:"column(id)" json:"id"` JxStoreID int `orm:"column(jxstoreid)" json:"storeID"` - OpenID string `orm:"column(openid);size(70);unique;default(null)" json:"openID"` + OpenID string `orm:"column(openid);size(70);unique;null" json:"openID"` Tel string `orm:"size(15);unique" json:"tel"` ParentID int `orm:"column(parentid);default(-1)" json:"parentID"` NickName string `orm:"column(nickname);size(30)" json:"nickname"`