63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace UniversityDataBaseImplemet.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class fix : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "StudentStreams");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "StudentDocuments");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "EducationGroupsStreams");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Id",
|
|
table: "EducationGroupsDocuments");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Id",
|
|
table: "StudentStreams",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Id",
|
|
table: "StudentDocuments",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Id",
|
|
table: "EducationGroupsStreams",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Id",
|
|
table: "EducationGroupsDocuments",
|
|
type: "integer",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
}
|
|
}
|