using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace AsbCloudDb.Migrations { public partial class UpdateTable_t_limiting_parameter : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "depth_start", table: "t_limiting_parameter", type: "real", nullable: false, defaultValue: 0f, oldClrType: typeof(float), oldType: "real", oldNullable: true); migrationBuilder.AlterColumn( name: "depth_end", table: "t_limiting_parameter", type: "real", nullable: false, defaultValue: 0f, oldClrType: typeof(float), oldType: "real", oldNullable: true); migrationBuilder.AlterColumn( name: "date_start", table: "t_limiting_parameter", type: "timestamp with time zone", nullable: false, defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), oldClrType: typeof(DateTimeOffset), oldType: "timestamp with time zone", oldNullable: true); migrationBuilder.AlterColumn( name: "date_end", table: "t_limiting_parameter", type: "timestamp with time zone", nullable: false, defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), oldClrType: typeof(DateTimeOffset), oldType: "timestamp with time zone", oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "depth_start", table: "t_limiting_parameter", type: "real", nullable: true, oldClrType: typeof(float), oldType: "real"); migrationBuilder.AlterColumn( name: "depth_end", table: "t_limiting_parameter", type: "real", nullable: true, oldClrType: typeof(float), oldType: "real"); migrationBuilder.AlterColumn( name: "date_start", table: "t_limiting_parameter", type: "timestamp with time zone", nullable: true, oldClrType: typeof(DateTimeOffset), oldType: "timestamp with time zone"); migrationBuilder.AlterColumn( name: "date_end", table: "t_limiting_parameter", type: "timestamp with time zone", nullable: true, oldClrType: typeof(DateTimeOffset), oldType: "timestamp with time zone"); } } }