repo creation with initial code after cloning public repo
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Jellyfin.Database.Providers.Sqlite.Migrations;
|
||||
using Jellyfin.Server.Implementations.Migrations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Xunit;
|
||||
|
||||
namespace Jellyfin.Server.Implementations.Tests.EfMigrations;
|
||||
|
||||
public class EfMigrationTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckForUnappliedMigrations_SqLite()
|
||||
{
|
||||
var dbDesignContext = new SqliteDesignTimeJellyfinDbFactory();
|
||||
var context = dbDesignContext.CreateDbContext([]);
|
||||
Assert.False(context.Database.HasPendingModelChanges(), "There are unapplied changes to the EFCore model for SQLite. Please create a Migration.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user