using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AGSS.Migrations
{
///
public partial class newuser : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "AuthId",
table: "UserModels",
type: "character varying(50)",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "text");
migrationBuilder.AddColumn(
name: "Birthday",
table: "UserModels",
type: "character varying(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AddColumn(
name: "Config",
table: "UserModels",
type: "character varying(200)",
maxLength: 200,
nullable: true);
migrationBuilder.AddColumn(
name: "Description",
table: "UserModels",
type: "character varying(100)",
maxLength: 100,
nullable: true);
migrationBuilder.AddColumn(
name: "JobCode",
table: "UserModels",
type: "character varying(10)",
maxLength: 10,
nullable: true);
migrationBuilder.AddColumn(
name: "JobName",
table: "UserModels",
type: "character varying(10)",
maxLength: 10,
nullable: true);
migrationBuilder.AddColumn(
name: "Sex",
table: "UserModels",
type: "character varying(20)",
maxLength: 20,
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Birthday",
table: "UserModels");
migrationBuilder.DropColumn(
name: "Config",
table: "UserModels");
migrationBuilder.DropColumn(
name: "Description",
table: "UserModels");
migrationBuilder.DropColumn(
name: "JobCode",
table: "UserModels");
migrationBuilder.DropColumn(
name: "JobName",
table: "UserModels");
migrationBuilder.DropColumn(
name: "Sex",
table: "UserModels");
migrationBuilder.AlterColumn(
name: "AuthId",
table: "UserModels",
type: "text",
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(50)",
oldMaxLength: 50);
}
}
}