59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Marco.Pms.DataAccess.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Added_CreatedAt_In_Advance_Payment_Table : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "PaidAt",
|
|
table: "AdvancePaymentTransactions",
|
|
type: "datetime(6)",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "ExpensesStatusMaster",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("6537018f-f4e9-4cb3-a210-6c3b2da999d7"),
|
|
column: "DisplayName",
|
|
value: "Submit for Review");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "RecurringPaymentStatus",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("da462422-13b2-45cc-a175-910a225f6fc8"),
|
|
column: "Name",
|
|
value: "Active");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PaidAt",
|
|
table: "AdvancePaymentTransactions");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "ExpensesStatusMaster",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("6537018f-f4e9-4cb3-a210-6c3b2da999d7"),
|
|
column: "DisplayName",
|
|
value: "Submit");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "RecurringPaymentStatus",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("da462422-13b2-45cc-a175-910a225f6fc8"),
|
|
column: "Name",
|
|
value: "Activated");
|
|
}
|
|
}
|
|
}
|