demo20230512/Migrations/202208180314247_addSupplierUserName.cs

21 lines
577 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 addSupplierUserName : DbMigration
{
public override void Up()
{
AddColumn("dbo.Suppliers", "UserName", c => c.String(nullable: true, maxLength: 256));
CreateIndex("dbo.Suppliers", "UserName", name: "AccountNameInex");
}
public override void Down()
{
DropIndex("dbo.Suppliers", "AccountNameInex");
DropColumn("dbo.Suppliers", "UserName");
}
}
}