5565dc3e05
- Add scripts and SQL for base and supplementary indexes (total 23) - Integrate index checks and auto-creation into Jellyfin startup - Update csproj to include SQL files in build/publish output - Add diagnostics, publish/copy scripts, and troubleshooting docs - Provide detailed guides for migration, verification, and merging - Ensures robust, automated, and well-documented index setup
23 lines
814 B
PowerShell
23 lines
814 B
PowerShell
# copy-sql-files.ps1
|
|
# Run this after publish to copy SQL files
|
|
|
|
param(
|
|
[string]$PublishDir = "Jellyfin.Server\bin\Release\net11.0\publish"
|
|
)
|
|
|
|
Write-Host "Copying SQL files to $PublishDir..." -ForegroundColor Cyan
|
|
|
|
# Create sql directory
|
|
New-Item -ItemType Directory -Path "$PublishDir\sql" -Force | Out-Null
|
|
New-Item -ItemType Directory -Path "$PublishDir\sql\schema_init" -Force | Out-Null
|
|
|
|
# Copy SQL files
|
|
Copy-Item "Jellyfin.Server\sql\*.sql" "$PublishDir\sql\" -Force
|
|
Copy-Item "Jellyfin.Server\sql\schema_init\*.sql" "$PublishDir\sql\schema_init\" -Force -ErrorAction SilentlyContinue
|
|
|
|
Write-Host "✓ SQL files copied successfully!" -ForegroundColor Green
|
|
|
|
# List copied files
|
|
Write-Host "`nCopied files:" -ForegroundColor Yellow
|
|
Get-ChildItem "$PublishDir\sql" -Recurse -File | Select-Object FullName
|