mirror of
https://github.com/C9Glax/tranga.git
synced 2025-05-21 13:43:01 +02:00
37 lines
1009 B
C#
37 lines
1009 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Migrations.pgsql
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MangaYearNullable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Year",
|
|
table: "Mangas",
|
|
type: "bigint",
|
|
nullable: true,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Year",
|
|
table: "Mangas",
|
|
type: "bigint",
|
|
nullable: false,
|
|
defaultValue: 0L,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|