ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace iWare.Wms.Database.Migrations.Migrations
{
    public partial class v102 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "Height",
                table: "wms_material",
                type: "decimal(18,2)",
                nullable: true,
                comment: "高(mm)");
 
            migrationBuilder.AddColumn<decimal>(
                name: "Length",
                table: "wms_material",
                type: "decimal(18,2)",
                nullable: true,
                comment: "长(mm)");
 
            migrationBuilder.AddColumn<string>(
                name: "Remark",
                table: "wms_material",
                type: "nvarchar(max)",
                nullable: true,
                comment: "备注");
 
            migrationBuilder.AddColumn<decimal>(
                name: "Width",
                table: "wms_material",
                type: "decimal(18,2)",
                nullable: true,
                comment: "宽(mm)");
        }
 
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Height",
                table: "wms_material");
 
            migrationBuilder.DropColumn(
                name: "Length",
                table: "wms_material");
 
            migrationBuilder.DropColumn(
                name: "Remark",
                table: "wms_material");
 
            migrationBuilder.DropColumn(
                name: "Width",
                table: "wms_material");
        }
    }
}