Some migration fixes and database optimizations

This commit is contained in:
Gabe Kangas
2021-07-22 23:28:01 -07:00
parent c4c1ecfc7b
commit 484098afda
5 changed files with 41 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ func migrateToSchema1(db *sql.DB) {
}
// Recreate it
createUsersTable(db)
CreateMessagesTable(db)
// Migrate access tokens to become chat users
type oldAccessToken struct {