33 lines
938 B
C#
33 lines
938 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DaSaSo.EntityFramework.Migrations
|
|
{
|
|
public partial class DateOnly : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateOnly>(
|
|
name: "Date",
|
|
table: "PipeLiners",
|
|
type: "date",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Date",
|
|
table: "PipeLiners",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
oldClrType: typeof(DateOnly),
|
|
oldType: "date");
|
|
}
|
|
}
|
|
}
|