2024-07-04 11:02:45 +05:00
|
|
|
using System;
|
2022-11-23 11:19:52 +05:00
|
|
|
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<float>(
|
|
|
|
name: "depth_start",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "real",
|
|
|
|
nullable: false,
|
|
|
|
defaultValue: 0f,
|
|
|
|
oldClrType: typeof(float),
|
|
|
|
oldType: "real",
|
|
|
|
oldNullable: true);
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
|
|
name: "depth_end",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "real",
|
|
|
|
nullable: false,
|
|
|
|
defaultValue: 0f,
|
|
|
|
oldClrType: typeof(float),
|
|
|
|
oldType: "real",
|
|
|
|
oldNullable: true);
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTimeOffset>(
|
|
|
|
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<DateTimeOffset>(
|
|
|
|
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<float>(
|
|
|
|
name: "depth_start",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "real",
|
|
|
|
nullable: true,
|
|
|
|
oldClrType: typeof(float),
|
|
|
|
oldType: "real");
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<float>(
|
|
|
|
name: "depth_end",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "real",
|
|
|
|
nullable: true,
|
|
|
|
oldClrType: typeof(float),
|
|
|
|
oldType: "real");
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTimeOffset>(
|
|
|
|
name: "date_start",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "timestamp with time zone",
|
|
|
|
nullable: true,
|
|
|
|
oldClrType: typeof(DateTimeOffset),
|
|
|
|
oldType: "timestamp with time zone");
|
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTimeOffset>(
|
|
|
|
name: "date_end",
|
|
|
|
table: "t_limiting_parameter",
|
|
|
|
type: "timestamp with time zone",
|
|
|
|
nullable: true,
|
|
|
|
oldClrType: typeof(DateTimeOffset),
|
|
|
|
oldType: "timestamp with time zone");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|