1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class alteContractfixedPay : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<decimal>(
- name: "FirstPatchAmount",
- table: "Contracts",
- type: "decimal(18,2)",
- nullable: true);
- migrationBuilder.AddColumn<DateTime>(
- name: "FirstPatchDateFrom",
- table: "Contracts",
- type: "datetime2",
- nullable: true);
- migrationBuilder.AddColumn<DateTime>(
- name: "FirstPatchDateTo",
- table: "Contracts",
- type: "datetime2",
- nullable: true);
- migrationBuilder.AddColumn<decimal>(
- name: "LastPatchAmount",
- table: "Contracts",
- type: "decimal(18,2)",
- nullable: true);
- migrationBuilder.AddColumn<DateTime>(
- name: "LastPatchDateFrom",
- table: "Contracts",
- type: "datetime2",
- nullable: true);
- migrationBuilder.AddColumn<DateTime>(
- name: "LastPatchDateTo",
- table: "Contracts",
- type: "datetime2",
- nullable: true);
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "FirstPatchAmount",
- table: "Contracts");
- migrationBuilder.DropColumn(
- name: "FirstPatchDateFrom",
- table: "Contracts");
- migrationBuilder.DropColumn(
- name: "FirstPatchDateTo",
- table: "Contracts");
- migrationBuilder.DropColumn(
- name: "LastPatchAmount",
- table: "Contracts");
- migrationBuilder.DropColumn(
- name: "LastPatchDateFrom",
- table: "Contracts");
- migrationBuilder.DropColumn(
- name: "LastPatchDateTo",
- table: "Contracts");
- }
- }
- }
|