mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -04:00
Fixed collation and pgsql container
This commit is contained in:
parent
379a104cfb
commit
ebe89c07b3
@ -25,7 +25,7 @@ services:
|
|||||||
image: postgres:17.2
|
image: postgres:17.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./pgdata/var/lib/postgresql/data
|
- ./pgdata:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: jellyfin
|
POSTGRES_PASSWORD: jellyfin
|
||||||
POSTGRES_USER: jellyfin
|
POSTGRES_USER: jellyfin
|
||||||
|
@ -964,19 +964,21 @@ namespace Jellyfin.Database.Providers.PgSql.Migrations
|
|||||||
table: "Peoples",
|
table: "Peoples",
|
||||||
column: "Name");
|
column: "Name");
|
||||||
|
|
||||||
|
// this was edited manually because "UserId" is a reserved name in pgsql
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Permissions_UserId_Kind",
|
name: "IX_Permissions_UserId_Kind",
|
||||||
table: "Permissions",
|
table: "Permissions",
|
||||||
columns: new[] { "UserId", "Kind" },
|
columns: new[] { "UserId", "Kind" },
|
||||||
unique: true,
|
unique: true,
|
||||||
filter: "[UserId] IS NOT NULL");
|
filter: "\"Permissions\".\"UserId\" IS NOT NULL");
|
||||||
|
|
||||||
|
// this was edited manually because "UserId" is a reserved name in pgsql
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Preferences_UserId_Kind",
|
name: "IX_Preferences_UserId_Kind",
|
||||||
table: "Preferences",
|
table: "Preferences",
|
||||||
columns: new[] { "UserId", "Kind" },
|
columns: new[] { "UserId", "Kind" },
|
||||||
unique: true,
|
unique: true,
|
||||||
filter: "[UserId] IS NOT NULL");
|
filter: "\"Preferences\".\"UserId\" IS NOT NULL");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_UserData_ItemId_UserId_IsFavorite",
|
name: "IX_UserData_ItemId_UserId_IsFavorite",
|
||||||
|
@ -1273,8 +1273,7 @@ namespace Jellyfin.Database.Providers.PgSql.Migrations
|
|||||||
b.Property<string>("Username")
|
b.Property<string>("Username")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(255)
|
.HasMaxLength(255)
|
||||||
.HasColumnType("character varying(255)")
|
.HasColumnType("character varying(255)");
|
||||||
.UseCollation("NOCASE");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user