using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql { /// public partial class StudentPersonalProfile : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Biography", table: "Students", type: "varchar(1000)", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "CurrentAddress", table: "Students", type: "varchar(300)", maxLength: 300, nullable: true); migrationBuilder.AddColumn( name: "EmergencyContactName", table: "Students", type: "varchar(50)", maxLength: 50, nullable: true); migrationBuilder.AddColumn( name: "EmergencyContactPhone", table: "Students", type: "varchar(30)", maxLength: 30, nullable: true); migrationBuilder.AddColumn( name: "EmergencyContactRelationship", table: "Students", type: "varchar(30)", maxLength: 30, nullable: true); migrationBuilder.AddColumn( name: "EnglishName", table: "Students", type: "varchar(100)", maxLength: 100, nullable: true); migrationBuilder.AddColumn( name: "Ethnicity", table: "Students", type: "varchar(50)", maxLength: 50, nullable: true); migrationBuilder.AddColumn( name: "HouseholdAddress", table: "Students", type: "varchar(300)", maxLength: 300, nullable: true); migrationBuilder.AddColumn( name: "IdCardNumber", table: "Students", type: "varchar(30)", maxLength: 30, nullable: true); migrationBuilder.AddColumn( name: "Nationality", table: "Students", type: "varchar(50)", maxLength: 50, nullable: true); migrationBuilder.AddColumn( name: "NativePlace", table: "Students", type: "varchar(100)", maxLength: 100, nullable: true); migrationBuilder.AddColumn( name: "PoliticalStatus", table: "Students", type: "varchar(50)", maxLength: 50, nullable: true); migrationBuilder.AddColumn( name: "PostalCode", table: "Students", type: "varchar(20)", maxLength: 20, nullable: true); migrationBuilder.AddColumn( name: "Qq", table: "Students", type: "varchar(30)", maxLength: 30, nullable: true); migrationBuilder.AddColumn( name: "SpecialNeeds", table: "Students", type: "varchar(1000)", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "SpecialTags", table: "Students", type: "varchar(300)", maxLength: 300, nullable: true); migrationBuilder.AddColumn( name: "WeChat", table: "Students", type: "varchar(60)", maxLength: 60, nullable: true); } /// 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"); } } }