using Microsoft.EntityFrameworkCore.Migrations; namespace GreenTree.Strohrmann.ERP.Domain.Migrations { public partial class DoubleConversion_2 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Value", table: "Taxes", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Value", table: "EmployeeDegrees", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Value", table: "CraftEmployees", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( 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( name: "Value", table: "Taxes", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Value", table: "EmployeeDegrees", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Value", table: "CraftEmployees", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( 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); } } }