Browse Source

fix downgrade health check failure for mariadb (#2737)

pull/2739/head
Jason Dove 1 week ago committed by GitHub
parent
commit
b582b4cbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 6889
      ErsatzTV.Infrastructure.MySql/Migrations/20251223150542_Fix_DowngradeWarning.Designer.cs
  3. 26
      ErsatzTV.Infrastructure.MySql/Migrations/20251223150542_Fix_DowngradeWarning.cs

1
CHANGELOG.md

@ -59,6 +59,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -59,6 +59,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix stream failure when configured fallback filler collection is empty
- Fix high CPU when errors are displayed; errors will now work ahead before throttling to realtime, similar to primary content
- Fix startup error caused by duplicate smart collection names (and no longer allow duplicate smart collection names)
- Fix erroneous downgrade health check failure with some installations that use MariaDB
### Changed
- No longer round framerate to nearest integer when normalizing framerate

6889
ErsatzTV.Infrastructure.MySql/Migrations/20251223150542_Fix_DowngradeWarning.Designer.cs generated

File diff suppressed because it is too large Load Diff

26
ErsatzTV.Infrastructure.MySql/Migrations/20251223150542_Fix_DowngradeWarning.cs

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
/// <inheritdoc />
public partial class Fix_DowngradeWarning : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
// this migration was removed because it failed to apply successfully on MySql
// nonetheless, it succeeded on MariaDB so some users still have this history record
// which causes an erroneous "downgrade" warning (db has migration that app doesn't know about)
// so it needs to be cleaned up
migrationBuilder.Sql(
"DELETE FROM `__EFMigrationsHistory` WHERE `MigrationId` = '20250723030616_Update_MediaFilePath'");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
Loading…
Cancel
Save