71 lines
2.5 KiB
C#
71 lines
2.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace wtmProject.DataAccess.Migrations
|
|
{
|
|
public partial class hmr2024041704 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "ContractId",
|
|
table: "WTM_CONTRACT_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: true,
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier");
|
|
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "BillingId",
|
|
table: "WTM_BILLING_LIST_RECEIVED_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: true,
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier");
|
|
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "BillingId",
|
|
table: "WTM_BILLING_LIST_BILLING_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: true,
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "ContractId",
|
|
table: "WTM_CONTRACT_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "BillingId",
|
|
table: "WTM_BILLING_LIST_RECEIVED_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<Guid>(
|
|
name: "BillingId",
|
|
table: "WTM_BILLING_LIST_BILLING_FILE",
|
|
type: "uniqueidentifier",
|
|
nullable: false,
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
oldClrType: typeof(Guid),
|
|
oldType: "uniqueidentifier",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|