using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PizzeriaDatabaseImplement.Migrations { /// public partial class Changeconstraint : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "DateImplement", table: "Orders", type: "timestamp with time zone", nullable: true, oldClrType: typeof(DateTime), oldType: "timestamp with time zone"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "DateImplement", table: "Orders", type: "timestamp with time zone", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), oldClrType: typeof(DateTime), oldType: "timestamp with time zone", oldNullable: true); } } }