using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AsbCloudDb.Migrations
{
    public partial class UpdateDateFormat_DailyReport : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateOnly>(
                name: "date",
                table: "t_daily_report",
                type: "date",
                nullable: false,
                comment: "Дата формирования отчёта",
                oldClrType: typeof(DateTime),
                oldType: "timestamp with time zone",
                oldComment: "Дата формирования отчёта");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "date",
                table: "t_daily_report",
                type: "timestamp with time zone",
                nullable: false,
                comment: "Дата формирования отчёта",
                oldClrType: typeof(DateOnly),
                oldType: "date",
                oldComment: "Дата формирования отчёта");
        }
    }
}