demo20230512/Migrations/202211191444048_addUserCreatedTime.cs

19 lines
503 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 addUserCreatedTime : DbMigration
{
public override void Up()
{
AddColumn("dbo.AspNetUsers", "CreatedTime", c => c.DateTime(nullable: false, defaultValueSql: "getdate()", precision: 7, storeType: "datetime2"));
}
public override void Down()
{
DropColumn("dbo.AspNetUsers", "CreatedTime");
}
}
}