19 lines
503 B
C#
19 lines
503 B
C#
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");
|
|
}
|
|
}
|
|
}
|