Update README paths and disable EnsureCreatedAsync to prevent automatic schema creation
This commit is contained in:
@@ -29,7 +29,7 @@ This creates:
|
||||
After the main schema is created, apply the performance indexes:
|
||||
|
||||
```sh
|
||||
psql -U jellyfin -d jellyfin -f sql/apply-supplementary-indexes-migration.sql
|
||||
psql -U jellyfin -d jellyfin -f sql/indexes/apply-supplementary-indexes-migration.sql
|
||||
```
|
||||
|
||||
This creates 5 additional performance indexes for:
|
||||
@@ -94,7 +94,7 @@ If your database structure is already correct, just add the performance indexes:
|
||||
|
||||
```sh
|
||||
# Apply supplementary indexes
|
||||
psql -U jellyfin -d jellyfin -f sql/apply-supplementary-indexes-migration.sql
|
||||
psql -U jellyfin -d jellyfin -f sql/indexes/apply-supplementary-indexes-migration.sql
|
||||
|
||||
# Apply ActivityLog index fix
|
||||
psql -U jellyfin -d jellyfin -f sql/fix-activitylog-index.sql
|
||||
@@ -112,7 +112,7 @@ psql -U jellyfin -d postgres -c "DROP DATABASE IF EXISTS jellyfin;"
|
||||
|
||||
# Recreate from schema
|
||||
psql -U jellyfin -d postgres -f sql/schema_init/create_database_schema.sql
|
||||
psql -U jellyfin -d jellyfin -f sql/apply-supplementary-indexes-migration.sql
|
||||
psql -U jellyfin -d jellyfin -f sql/indexes/apply-supplementary-indexes-migration.sql
|
||||
psql -U jellyfin -d jellyfin -f sql/fix-activitylog-index.sql
|
||||
```
|
||||
|
||||
@@ -126,8 +126,14 @@ D:\Projects\pgsql-jellyfin\
|
||||
│ ├── schema_init/
|
||||
│ │ ├── create_database_schema.sql ← Main database schema
|
||||
│ │ └── 10_create_supplementary_indexes.sql ← (EF migration file)
|
||||
│ ├── apply-supplementary-indexes-migration.sql ← Performance indexes
|
||||
│ └── fix-activitylog-index.sql ← ActivityLog index fix
|
||||
│ ├── indexes/
|
||||
│ │ └── apply-supplementary-indexes-migration.sql ← Performance indexes
|
||||
│ ├── diagnostics/
|
||||
│ │ ├── diagnostics.sql
|
||||
│ │ ├── monitor-query-performance.sql
|
||||
│ │ └── query-analysis.sql
|
||||
│ ├── fix-activitylog-index.sql ← ActivityLog index fix
|
||||
│ └── README-DATABASE-SETUP.md ← This file
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user