Fix migration crash on upgrade from v2.31.0

Removed index definition from Session model since the migration already
creates it. This prevents .sync() from trying to create the index before
migrations run. Also bumped version to 2.34.0 to match migration files.

Fixes: SQLITE_ERROR: no such column: oidcSessionId
This commit is contained in:
Denis Arnst 2026-02-07 22:10:38 +01:00
parent c99543be87
commit 84b3d4d215
No known key found for this signature in database
GPG key ID: D5866C58940197BF
2 changed files with 2 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{
"name": "audiobookshelf",
"version": "2.32.1",
"version": "2.34.0",
"buildNumber": 1,
"description": "Self-hosted audiobook and podcast server",
"main": "index.js",

View file

@ -76,13 +76,7 @@ class Session extends Model {
},
{
sequelize,
modelName: 'session',
indexes: [
{
name: 'sessions_oidc_session_id',
fields: ['oidcSessionId']
}
]
modelName: 'session'
}
)