35 lines
959 B
C#
35 lines
959 B
C#
namespace Weee.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class reCreateSynergerFabs : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
DropTable("dbo.SynergerFabs");
|
|
CreateTable(
|
|
"dbo.SynergerFabs",
|
|
c => new
|
|
{
|
|
fabId = c.Int(nullable: false, identity: false),
|
|
groupId = c.Int(nullable: false),
|
|
})
|
|
.PrimaryKey(t => new { t.fabId });
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
DropTable("dbo.SynergerFabs");
|
|
CreateTable(
|
|
"dbo.SynergerFabs",
|
|
c => new
|
|
{
|
|
fabId = c.Int(nullable: false, identity: true),
|
|
groupId = c.Int(nullable: false),
|
|
})
|
|
.PrimaryKey(t => t.fabId);
|
|
}
|
|
}
|
|
}
|