mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-08-03 23:21:36 +00:00
Sequelize showIndex matches the table name case-sensitively, but postgres folds unquoted identifiers to lowercase, so existing indexes were never detected and addIndex failed with already-exists errors, crash-looping the server on startup. Query pg_indexes with the folded table name on postgres and compare index names case-insensitively. |
||
|---|---|---|
| .. | ||
| auth | ||
| controllers | ||
| finders | ||
| managers | ||
| migrations | ||
| models | ||
| objects | ||
| providers | ||
| scripts | ||
| utils | ||
| Database.test.js | ||
| Logger.test.js | ||