diff options
Diffstat (limited to 'store/sql_session_store.go')
-rw-r--r-- | store/sql_session_store.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/store/sql_session_store.go b/store/sql_session_store.go index 9a377239a..4e1bea3cf 100644 --- a/store/sql_session_store.go +++ b/store/sql_session_store.go @@ -32,6 +32,9 @@ func NewSqlSessionStore(sqlStore *SqlStore) SessionStore { func (me SqlSessionStore) CreateIndexesIfNotExists() { me.CreateIndexIfNotExists("idx_sessions_user_id", "Sessions", "UserId") me.CreateIndexIfNotExists("idx_sessions_token", "Sessions", "Token") + me.CreateIndexIfNotExists("idx_sessions_expires_at", "Sessions", "ExpiresAt") + me.CreateIndexIfNotExists("idx_sessions_create_at", "Sessions", "CreateAt") + me.CreateIndexIfNotExists("idx_sessions_last_activity_at", "Sessions", "LastActivityAt") } func (me SqlSessionStore) Save(session *model.Session) StoreChannel { |