73 lines
2.3 KiB
C#
73 lines
2.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Crafting2 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "BonusOutputChanceAtMinLevel",
|
|
table: "dungeon_crafting_recipes",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0f);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BonusOutputItemDefinitionId",
|
|
table: "dungeon_crafting_recipes",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BonusOutputMaxLevel",
|
|
table: "dungeon_crafting_recipes",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BonusOutputMinLevel",
|
|
table: "dungeon_crafting_recipes",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BonusOutputQuantity",
|
|
table: "dungeon_crafting_recipes",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "BonusOutputChanceAtMinLevel",
|
|
table: "dungeon_crafting_recipes");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BonusOutputItemDefinitionId",
|
|
table: "dungeon_crafting_recipes");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BonusOutputMaxLevel",
|
|
table: "dungeon_crafting_recipes");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BonusOutputMinLevel",
|
|
table: "dungeon_crafting_recipes");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BonusOutputQuantity",
|
|
table: "dungeon_crafting_recipes");
|
|
}
|
|
}
|
|
}
|