mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use MySQL database server in Server to store uploaded reports (version 2).
This commit is contained in:
21
DiscImageChef.Server/Migrations/Configuration.cs
Normal file
21
DiscImageChef.Server/Migrations/Configuration.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
sealed class Configuration : DbMigrationsConfiguration<DicServerContext>
|
||||
{
|
||||
public Configuration()
|
||||
{
|
||||
AutomaticMigrationsEnabled = true;
|
||||
}
|
||||
|
||||
protected override void Seed(DicServerContext context)
|
||||
{
|
||||
// This method will be called after migrating to the latest version.
|
||||
|
||||
// You can use the DbSet<T>.AddOrUpdate() helper extension method
|
||||
// to avoid creating duplicate seed data.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user