mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-28 21:19:42 +00:00
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:
parent
c99543be87
commit
84b3d4d215
2 changed files with 2 additions and 8 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -76,13 +76,7 @@ class Session extends Model {
|
|||
},
|
||||
{
|
||||
sequelize,
|
||||
modelName: 'session',
|
||||
indexes: [
|
||||
{
|
||||
name: 'sessions_oidc_session_id',
|
||||
fields: ['oidcSessionId']
|
||||
}
|
||||
]
|
||||
modelName: 'session'
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue