using Microsoft.EntityFrameworkCore.Migrations; namespace GreenTree.Strohrmann.ERP.Domain.Migrations { public partial class DoubleConversion : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Width", table: "Materials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "PackageSize", table: "Materials", nullable: false, defaultValue: 1f, oldClrType: typeof(decimal), oldType: "decimal(65,30)", oldDefaultValue: 1m); migrationBuilder.AlterColumn( name: "NetValue", table: "Materials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Height", table: "Materials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Depth", table: "Materials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Value", table: "CraftMaterials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "CalculationFactor", table: "CraftMaterials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); migrationBuilder.AlterColumn( name: "Amount", table: "CraftMaterials", nullable: false, oldClrType: typeof(decimal), oldType: "decimal(65,30)"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Width", table: "Materials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "PackageSize", table: "Materials", type: "decimal(65,30)", nullable: false, defaultValue: 1m, oldClrType: typeof(float), oldDefaultValue: 1f); migrationBuilder.AlterColumn( name: "NetValue", table: "Materials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Height", table: "Materials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Depth", table: "Materials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Value", table: "CraftMaterials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "CalculationFactor", table: "CraftMaterials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); migrationBuilder.AlterColumn( name: "Amount", table: "CraftMaterials", type: "decimal(65,30)", nullable: false, oldClrType: typeof(float)); } } }