222
schangxiang@126.com
2025-05-08 06a0e112b1b865f8a9a53b0f8e8279774348fcac
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
60
61
62
63
64
65
66
67
68
69
70
71
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace CMS.Plugin.HIAWms.MySQL.Migrations
{
    public partial class InitialCreate5 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsSelfMade",
                table: "scms_wmsmaterials",
                type: "tinyint(1)",
                nullable: true,
                comment: "数量");
 
            migrationBuilder.AddColumn<bool>(
                name: "IsValid",
                table: "scms_wmsmaterials",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false,
                comment: "是否有效物料");
 
            migrationBuilder.AddColumn<decimal>(
                name: "NullLength",
                table: "scms_wmsmaterials",
                type: "decimal(65,30)",
                nullable: true);
 
            migrationBuilder.AddColumn<int>(
                name: "Num",
                table: "scms_wmsmaterials",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "是否有效物料");
 
            migrationBuilder.AddColumn<int>(
                name: "SelfNum",
                table: "scms_wmsmaterials",
                type: "int",
                nullable: true,
                comment: "自有数量");
        }
 
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsSelfMade",
                table: "scms_wmsmaterials");
 
            migrationBuilder.DropColumn(
                name: "IsValid",
                table: "scms_wmsmaterials");
 
            migrationBuilder.DropColumn(
                name: "NullLength",
                table: "scms_wmsmaterials");
 
            migrationBuilder.DropColumn(
                name: "Num",
                table: "scms_wmsmaterials");
 
            migrationBuilder.DropColumn(
                name: "SelfNum",
                table: "scms_wmsmaterials");
        }
    }
}