39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MagMan.Data.Admin.Migrations
|
|
{
|
|
public partial class UpdateMachineModel : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "DtActivation",
|
|
table: "MachineList",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsActive",
|
|
table: "MachineList",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DtActivation",
|
|
table: "MachineList");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsActive",
|
|
table: "MachineList");
|
|
}
|
|
}
|
|
}
|