53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
public partial class totalPaymentCheckout : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TotalClaims",
|
|
table: "Checkouts",
|
|
type: "nvarchar(25)",
|
|
maxLength: 25,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TotalDeductions",
|
|
table: "Checkouts",
|
|
type: "nvarchar(25)",
|
|
maxLength: 25,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "TotalPayment",
|
|
table: "Checkouts",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
|
|
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalClaims",
|
|
table: "Checkouts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalDeductions",
|
|
table: "Checkouts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TotalPayment",
|
|
table: "Checkouts");
|
|
|
|
|
|
}
|
|
}
|
|
}
|