forked from ddrilling/AsbCloudServer
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class AddUserColumns : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "email",
|
|
table: "t_user",
|
|
type: "character varying(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
comment: "должность");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "phone",
|
|
table: "t_user",
|
|
type: "character varying(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
comment: "номер телефона");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "position",
|
|
table: "t_user",
|
|
type: "character varying(255)",
|
|
maxLength: 255,
|
|
nullable: true,
|
|
comment: "email");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "email",
|
|
table: "t_user");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "phone",
|
|
table: "t_user");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "position",
|
|
table: "t_user");
|
|
}
|
|
}
|
|
}
|