CourseWork/University/UniversityDatabaseImplement/Migrations/20240518164251_newMigration.cs

42 lines
1.2 KiB
C#
Raw Normal View History

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace UniversityDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class newMigration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateOnly>(
name: "Date",
table: "PlanOfStudys",
type: "date",
nullable: false,
defaultValue: new DateOnly(1, 1, 1));
migrationBuilder.AddColumn<DateOnly>(
name: "Date",
table: "Disciplines",
type: "date",
nullable: false,
defaultValue: new DateOnly(1, 1, 1));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Date",
table: "PlanOfStudys");
migrationBuilder.DropColumn(
name: "Date",
table: "Disciplines");
}
}
}