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:
@@ -33,7 +33,10 @@
|
||||
// This is verbatim from ASP.NET so left as is
|
||||
// ReSharper disable All
|
||||
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Web.Http;
|
||||
using DiscImageChef.Server.Migrations;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
namespace DiscImageChef.Server
|
||||
{
|
||||
@@ -48,6 +51,11 @@ namespace DiscImageChef.Server
|
||||
|
||||
config.Routes.MapHttpRoute(name: "DefaultApi", routeTemplate: "api/{controller}/{id}",
|
||||
defaults: new {id = RouteParameter.Optional});
|
||||
|
||||
//DicServerContext ctx = new DicServerContext();
|
||||
Configuration migratorConfig = new Migrations.Configuration();
|
||||
DbMigrator dbMigrator = new DbMigrator(migratorConfig);
|
||||
dbMigrator.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user