mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
17 lines
817 B
C#
17 lines
817 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Marechai.Database.Migrations
|
|
{
|
|
public partial class NewsDateAsDateTime : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder) =>
|
|
migrationBuilder.AlterColumn<DateTime>("date", "news", "datetime", nullable: false,
|
|
oldClrType: typeof(string), oldType: "char(20)",
|
|
oldDefaultValueSql: "''");
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) =>
|
|
migrationBuilder.AlterColumn<string>("date", "news", "char(20)", nullable: false, defaultValueSql: "''",
|
|
oldClrType: typeof(DateTime), oldType: "datetime");
|
|
}
|
|
} |