37 lines
1011 B
C#
37 lines
1011 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace OnlineShopDatabase.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class SumNull : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Sum",
|
|
table: "Orders",
|
|
type: "float",
|
|
nullable: true,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Sum",
|
|
table: "Orders",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
oldClrType: typeof(double),
|
|
oldType: "float",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|