mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 20:24:27 -04:00
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ChapterNumber : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "MaxNumber",
|
|
table: "Chapter",
|
|
type: "REAL",
|
|
nullable: false,
|
|
defaultValue: 0f);
|
|
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "MinNumber",
|
|
table: "Chapter",
|
|
type: "REAL",
|
|
nullable: false,
|
|
defaultValue: 0f);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxNumber",
|
|
table: "Chapter");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinNumber",
|
|
table: "Chapter");
|
|
}
|
|
}
|
|
}
|