SUBD_Aleikin/Restaurant/RestaurantDatabaseImplement/Migrations/20230516191214_migr2.cs

51 lines
1.5 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RestaurantDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class migr2 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "Price",
table: "Products",
type: "double precision",
nullable: false,
oldClrType: typeof(int),
oldType: "integer");
migrationBuilder.AlterColumn<double>(
name: "Price",
table: "Orders",
type: "double precision",
nullable: false,
oldClrType: typeof(int),
oldType: "integer");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Price",
table: "Products",
type: "integer",
nullable: false,
oldClrType: typeof(double),
oldType: "double precision");
migrationBuilder.AlterColumn<int>(
name: "Price",
table: "Orders",
type: "integer",
nullable: false,
oldClrType: typeof(double),
oldType: "double precision");
}
}
}