EfMigrationTests.cs 559 B

12345678910111213141516
  1. using Jellyfin.Server.Implementations.Migrations;
  2. using Microsoft.EntityFrameworkCore;
  3. using Xunit;
  4. namespace Jellyfin.Server.Implementations.Tests.EfMigrations;
  5. public class EfMigrationTests
  6. {
  7. [Fact]
  8. public void CheckForUnappliedMigrations_SqLite()
  9. {
  10. var dbDesignContext = new SqliteDesignTimeJellyfinDbFactory();
  11. var context = dbDesignContext.CreateDbContext([]);
  12. Assert.False(context.Database.HasPendingModelChanges(), "There are unapplied changes to the EFCore model for SQLite. Please create a Migration.");
  13. }
  14. }