239 lines
7.6 KiB
C#
239 lines
7.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Craftingchange : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxArmor",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusDexterity",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusEndurance",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusHealth",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusIntelligence",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusMana",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusStrength",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxBonusWisdom",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxMaxDamage",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MaxMinDamage",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinArmor",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusDexterity",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusEndurance",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusHealth",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusIntelligence",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusMana",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusStrength",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinBonusWisdom",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinMaxDamage",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "MinMinDamage",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxArmor",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusDexterity",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusEndurance",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusHealth",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusIntelligence",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusMana",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusStrength",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxBonusWisdom",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxMaxDamage",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MaxMinDamage",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinArmor",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusDexterity",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusEndurance",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusHealth",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusIntelligence",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusMana",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusStrength",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinBonusWisdom",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinMaxDamage",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MinMinDamage",
|
|
table: "dungeon_item_definitions");
|
|
}
|
|
}
|
|
}
|