67 lines
2.0 KiB
C#
67 lines
2.0 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace SchoolDatabaseImplements.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class DbFix : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "Remains",
|
|||
|
table: "Payments",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(decimal),
|
|||
|
oldType: "decimal(18,2)");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "PaySum",
|
|||
|
table: "Payments",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(decimal),
|
|||
|
oldType: "decimal(18,2)");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "LessonPrice",
|
|||
|
table: "Lessons",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(decimal),
|
|||
|
oldType: "decimal(18,2)");
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<decimal>(
|
|||
|
name: "Remains",
|
|||
|
table: "Payments",
|
|||
|
type: "decimal(18,2)",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<decimal>(
|
|||
|
name: "PaySum",
|
|||
|
table: "Payments",
|
|||
|
type: "decimal(18,2)",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<decimal>(
|
|||
|
name: "LessonPrice",
|
|||
|
table: "Lessons",
|
|||
|
type: "decimal(18,2)",
|
|||
|
nullable: false,
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|