demo20230512/Migrations/202302150600491_addColumnSynergerUser.cs

21 lines
648 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
namespace Weee.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class addColumnSynergerUser : DbMigration
{
public override void Up()
{
AddColumn("dbo.SynergerUsers", "accessToken", c => c.String(unicode:false, nullable:false, maxLength:50));
AddColumn("dbo.SynergerUsers", "modifyTime", c => c.DateTime(nullable: false, defaultValueSql:"getdate()"));
}
public override void Down()
{
DropColumn("dbo.SynergerUsers", "modifyTime");
DropColumn("dbo.SynergerUsers", "accessToken");
}
}
}