Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
security: invalidate any insecure cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Feb 7, 2021
1 parent 8918ca6 commit 669eb6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,11 @@ var migrations = []func(*sql.Tx) error{
`alter table posts alter column flag type varchar(5)`,
)
},
func(tx *sql.Tx) error {
return execAll(tx,
`truncate table sessions;`,
)
},
}

func createIndex(table string, columns ...string) string {
Expand Down

0 comments on commit 669eb6e

Please sign in to comment.