2.3.0-rc2
This commit is contained in:
+205
@@ -0,0 +1,205 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class StudentPersonalProfile : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Biography",
|
||||
table: "Students",
|
||||
type: "varchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CurrentAddress",
|
||||
table: "Students",
|
||||
type: "varchar(300)",
|
||||
maxLength: 300,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EmergencyContactName",
|
||||
table: "Students",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EmergencyContactPhone",
|
||||
table: "Students",
|
||||
type: "varchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EmergencyContactRelationship",
|
||||
table: "Students",
|
||||
type: "varchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EnglishName",
|
||||
table: "Students",
|
||||
type: "varchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Ethnicity",
|
||||
table: "Students",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "HouseholdAddress",
|
||||
table: "Students",
|
||||
type: "varchar(300)",
|
||||
maxLength: 300,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "IdCardNumber",
|
||||
table: "Students",
|
||||
type: "varchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Nationality",
|
||||
table: "Students",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "NativePlace",
|
||||
table: "Students",
|
||||
type: "varchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PoliticalStatus",
|
||||
table: "Students",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PostalCode",
|
||||
table: "Students",
|
||||
type: "varchar(20)",
|
||||
maxLength: 20,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Qq",
|
||||
table: "Students",
|
||||
type: "varchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SpecialNeeds",
|
||||
table: "Students",
|
||||
type: "varchar(1000)",
|
||||
maxLength: 1000,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SpecialTags",
|
||||
table: "Students",
|
||||
type: "varchar(300)",
|
||||
maxLength: 300,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "WeChat",
|
||||
table: "Students",
|
||||
type: "varchar(60)",
|
||||
maxLength: 60,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Biography",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CurrentAddress",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EmergencyContactName",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EmergencyContactPhone",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EmergencyContactRelationship",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EnglishName",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Ethnicity",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HouseholdAddress",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IdCardNumber",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Nationality",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NativePlace",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PoliticalStatus",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PostalCode",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Qq",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SpecialNeeds",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SpecialTags",
|
||||
table: "Students");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WeChat",
|
||||
table: "Students");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user