42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class tblAppInWorksAddCols : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsAutoDistributionEnabled",
|
|
table: "ApplicationsInWorks",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|
name: "ReferenceDate",
|
|
table: "ApplicationsInWorks",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsAutoDistributionEnabled",
|
|
table: "ApplicationsInWorks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ReferenceDate",
|
|
table: "ApplicationsInWorks");
|
|
}
|
|
}
|
|
}
|