Browse Source

fix mysql migration (initial data) (#1379)

pull/1380/head
Jason Dove 2 years ago committed by GitHub
parent
commit
4b08ed5381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ErsatzTV.Infrastructure.MySql/Migrations/20230812173602_InitialData.cs

6
ErsatzTV.Infrastructure.MySql/Migrations/20230812173602_InitialData.cs

@ -52,7 +52,11 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations @@ -52,7 +52,11 @@ namespace ErsatzTV.Infrastructure.MySql.Migrations
(SELECT LMS.Id FROM LocalMediaSource LMS LIMIT 1) AS A");
migrationBuilder.Sql("INSERT INTO LocalLibrary (Id) Values (last_insert_id())");
migrationBuilder.Sql("INSERT INTO Resolution (Id, Height, Width, Name) VALUES (0, 480, 640, '640x480')");
migrationBuilder.Sql(
"""
INSERT INTO Resolution (Id, Height, Width, Name) VALUES (0, 480, 640, '640x480');
UPDATE Resolution SET Id = 0;
""");
}
/// <inheritdoc />

Loading…
Cancel
Save