mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Move server to separate folder.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
namespace DiscImageChef.Server.Migrations
|
||||
{
|
||||
public partial class LinkDeviceStatsToReport : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.DeviceStats", "Report_Id", c => c.Int());
|
||||
CreateIndex("dbo.DeviceStats", "Report_Id");
|
||||
AddForeignKey("dbo.DeviceStats", "Report_Id", "dbo.Devices", "Id");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.DeviceStats", "Report_Id", "dbo.Devices");
|
||||
DropIndex("dbo.DeviceStats", new[] {"Report_Id"});
|
||||
DropColumn("dbo.DeviceStats", "Report_Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user