Refactor SQLite Database Provider
- Removed unused classes and files related to SQLite database provider, including SqliteDesignTimeJellyfinDbFactory, ModelBuilderExtensions, PragmaConnectionInterceptor, AssemblyInfo, SqliteDatabaseProvider, DateTimeKindValueConverter. - Updated tests to remove dependencies on removed classes and adjusted mocking for configuration sections. - Added Microsoft.EntityFrameworkCore.Sqlite package reference to test project. - Improved string handling in tests for better consistency and clarity. - Refactored logging methods in JellyfinApplicationFactory for better readability and maintainability.
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
-- ================================================
|
||||
-- Fix for ActivityLogs Index
|
||||
-- Run this separately to create the missing index
|
||||
-- ================================================
|
||||
--
|
||||
-- This creates the ActivityLogs index that couldn't be created
|
||||
-- from within the main migration script due to PostgreSQL
|
||||
-- limitations with CONCURRENT operations in functions.
|
||||
--
|
||||
-- ================================================
|
||||
|
||||
-- Create the ActivityLogs index
|
||||
-- This will error gracefully if the table doesn't exist
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_activitylogs_userid_datecreated
|
||||
ON activitylog."ActivityLogs" ("UserId", "DateCreated" DESC)
|
||||
WHERE "UserId" IS NOT NULL;
|
||||
|
||||
-- Verify it was created
|
||||
SELECT
|
||||
schemaname AS "Schema",
|
||||
tablename AS "Table",
|
||||
indexname AS "Index Name",
|
||||
indexdef AS "Definition"
|
||||
FROM pg_indexes
|
||||
WHERE indexname = 'idx_activitylogs_userid_datecreated';
|
||||
|
||||
-- Expected: 1 row showing the index on activitylog.ActivityLogs
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user