demo20230512/Migrations/202212011420070_reCreateSynergerFabs.cs

35 lines
959 B
C#
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
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);
}
}
}