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