81 lines
2.2 KiB
C#
81 lines
2.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class StudentProperties : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Grade",
|
|
table: "Students",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NationalID",
|
|
table: "Students",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OfficerRole",
|
|
table: "Students",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "RegionalID",
|
|
table: "Students",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StateID",
|
|
table: "Students",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TsaYear",
|
|
table: "Students",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Grade",
|
|
table: "Students");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "NationalID",
|
|
table: "Students");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OfficerRole",
|
|
table: "Students");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RegionalID",
|
|
table: "Students");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StateID",
|
|
table: "Students");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TsaYear",
|
|
table: "Students");
|
|
}
|
|
}
|
|
}
|