| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace GreenTree.Strohrmann.ERP.Domain.Migrations
- {
- public partial class DoubleConversion_2 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<float>(
- name: "Value",
- table: "Taxes",
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(65,30)");
- migrationBuilder.AlterColumn<float>(
- name: "Value",
- table: "EmployeeDegrees",
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(65,30)");
- migrationBuilder.AlterColumn<float>(
- name: "Value",
- table: "CraftEmployees",
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(65,30)");
- migrationBuilder.AlterColumn<float>(
- name: "Amount",
- table: "CraftEmployees",
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(65,30)");
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 1,
- column: "Value",
- value: 60f);
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 2,
- column: "Value",
- value: 30f);
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 3,
- column: "Value",
- value: 15f);
- migrationBuilder.UpdateData(
- table: "Taxes",
- keyColumn: "Id",
- keyValue: 1,
- column: "Value",
- value: 0.19f);
- migrationBuilder.UpdateData(
- table: "Taxes",
- keyColumn: "Id",
- keyValue: 2,
- column: "Value",
- value: 0.16f);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "Value",
- table: "Taxes",
- type: "decimal(65,30)",
- nullable: false,
- oldClrType: typeof(float));
- migrationBuilder.AlterColumn<decimal>(
- name: "Value",
- table: "EmployeeDegrees",
- type: "decimal(65,30)",
- nullable: false,
- oldClrType: typeof(float));
- migrationBuilder.AlterColumn<decimal>(
- name: "Value",
- table: "CraftEmployees",
- type: "decimal(65,30)",
- nullable: false,
- oldClrType: typeof(float));
- migrationBuilder.AlterColumn<decimal>(
- name: "Amount",
- table: "CraftEmployees",
- type: "decimal(65,30)",
- nullable: false,
- oldClrType: typeof(float));
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 1,
- column: "Value",
- value: 60m);
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 2,
- column: "Value",
- value: 30m);
- migrationBuilder.UpdateData(
- table: "EmployeeDegrees",
- keyColumn: "Id",
- keyValue: 3,
- column: "Value",
- value: 15m);
- migrationBuilder.UpdateData(
- table: "Taxes",
- keyColumn: "Id",
- keyValue: 1,
- column: "Value",
- value: 0.19m);
- migrationBuilder.UpdateData(
- table: "Taxes",
- keyColumn: "Id",
- keyValue: 2,
- column: "Value",
- value: 0.16m);
- }
- }
- }
|