feat(dal): Таблицы для расписания ЕСПП
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class TblApplicationInWorksUpd : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<TimeSpan>(
|
||||
name: "ScheduleGenerationTime",
|
||||
table: "ApplicationsInWorks",
|
||||
type: "interval",
|
||||
nullable: false,
|
||||
defaultValue: new TimeSpan(0, 0, 0, 0, 0));
|
||||
|
||||
migrationBuilder.AddColumn<DateOnly>(
|
||||
name: "ScheduleStartDate",
|
||||
table: "ApplicationsInWorks",
|
||||
type: "date",
|
||||
nullable: false,
|
||||
defaultValue: new DateOnly(1, 1, 1));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScheduleGenerationTime",
|
||||
table: "ApplicationsInWorks");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScheduleStartDate",
|
||||
table: "ApplicationsInWorks");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user