diff options
Diffstat (limited to 'store/sql_session_store.go')
-rw-r--r-- | store/sql_session_store.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/store/sql_session_store.go b/store/sql_session_store.go index 94694267c..4ddc06302 100644 --- a/store/sql_session_store.go +++ b/store/sql_session_store.go @@ -29,14 +29,6 @@ func NewSqlSessionStore(sqlStore *SqlStore) SessionStore { return us } -func (me SqlSessionStore) UpgradeSchemaIfNeeded() { - // ADDED for 2.1 REMOVE for 2.5 - deviceIdLength := me.GetMaxLengthOfColumnIfExists("Sessions", "DeviceId") - if len(deviceIdLength) > 0 && deviceIdLength != "512" { - me.AlterColumnTypeIfExists("Sessions", "DeviceId", "VARCHAR(512)", "VARCHAR(512)") - } -} - func (me SqlSessionStore) CreateIndexesIfNotExists() { me.CreateIndexIfNotExists("idx_sessions_user_id", "Sessions", "UserId") me.CreateIndexIfNotExists("idx_sessions_token", "Sessions", "Token") |