using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CartriX.Api.Migrations
{
///
public partial class setNullToDateLastFilling : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "dateLastFilling",
table: "Cartridges",
type: "TEXT",
nullable: true,
oldClrType: typeof(DateOnly),
oldType: "TEXT");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "dateLastFilling",
table: "Cartridges",
type: "TEXT",
nullable: false,
defaultValue: new DateOnly(1, 1, 1),
oldClrType: typeof(DateOnly),
oldType: "TEXT",
oldNullable: true);
}
}
}