sunpengfei
昨天 fd1d2c1d5f519ddb4667019d6685ff270ad6716b
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System;
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace FlexJobApi.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class UpdateUser0815 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "DataSource",
                table: "User",
                type: "int",
                nullable: true);
 
            migrationBuilder.AddColumn<Guid>(
                name: "DataSourceId",
                table: "User",
                type: "uniqueidentifier",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "Address",
                table: "Enterprise",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "EnterpriseType",
                table: "Enterprise",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "EstablishmentDate",
                table: "Enterprise",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "RegisteredCapital",
                table: "Enterprise",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
                columns: new[] { "DataSource", "DataSourceId" },
                values: new object[] { null, null });
        }
 
        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DataSource",
                table: "User");
 
            migrationBuilder.DropColumn(
                name: "DataSourceId",
                table: "User");
 
            migrationBuilder.DropColumn(
                name: "Address",
                table: "Enterprise");
 
            migrationBuilder.DropColumn(
                name: "EnterpriseType",
                table: "Enterprise");
 
            migrationBuilder.DropColumn(
                name: "EstablishmentDate",
                table: "Enterprise");
 
            migrationBuilder.DropColumn(
                name: "RegisteredCapital",
                table: "Enterprise");
        }
    }
}