Resistances + Dmg Types
This commit is contained in:
+2011
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,55 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SystemRevivalServer.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ResistancedmgType : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DamageTypeKey",
|
||||
table: "dungeon_mob_definitions",
|
||||
type: "varchar(32)",
|
||||
maxLength: 32,
|
||||
nullable: false,
|
||||
defaultValue: "")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "BuffDuration",
|
||||
table: "dungeon_item_definitions",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BuffResistancesJson",
|
||||
table: "dungeon_item_definitions",
|
||||
type: "varchar(1024)",
|
||||
maxLength: 1024,
|
||||
nullable: false,
|
||||
defaultValue: "")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DamageTypeKey",
|
||||
table: "dungeon_mob_definitions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BuffDuration",
|
||||
table: "dungeon_item_definitions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BuffResistancesJson",
|
||||
table: "dungeon_item_definitions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -737,6 +737,14 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<int>("BonusWisdom")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("BuffDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("BuffResistancesJson")
|
||||
.IsRequired()
|
||||
.HasMaxLength(1024)
|
||||
.HasColumnType("varchar(1024)");
|
||||
|
||||
b.Property<int>("DamageType")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -1003,6 +1011,11 @@ namespace SystemRevivalServer.Migrations
|
||||
b.Property<float>("DamagePerTier")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<string>("DamageTypeKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("varchar(32)");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
|
||||
Reference in New Issue
Block a user