40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using System;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init011 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<DateTime>(
|
|||
|
name: "EndTime",
|
|||
|
table: "Ai_Device",
|
|||
|
type: "datetime",
|
|||
|
nullable: false,
|
|||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|||
|
comment: "有效期结束时间");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<DateTime>(
|
|||
|
name: "StartTime",
|
|||
|
table: "Ai_Device",
|
|||
|
type: "datetime",
|
|||
|
nullable: false,
|
|||
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|||
|
comment: "有效期开始时间");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "EndTime",
|
|||
|
table: "Ai_Device");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "StartTime",
|
|||
|
table: "Ai_Device");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|