51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
|
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|