using System; using Microsoft.EntityFrameworkCore.Migrations; namespace ProductionLineMonitor.Web.Migrations { public partial class _202211031118 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DataTime", table: "MachineProcessPSs", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "DataTime", table: "MachineProcessPSEPDs", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "DataTime", table: "MachineProcessFOGs", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "DataTime", table: "MachineProcessBTs", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DataTime", table: "MachineProcessPSs"); migrationBuilder.DropColumn( name: "DataTime", table: "MachineProcessPSEPDs"); migrationBuilder.DropColumn( name: "DataTime", table: "MachineProcessFOGs"); migrationBuilder.DropColumn( name: "DataTime", table: "MachineProcessBTs"); } } }