42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ColumnFight : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "HazardTintColor",
|
|
table: "dungeon_mob_abilities",
|
|
type: "varchar(16)",
|
|
maxLength: 16,
|
|
nullable: false,
|
|
defaultValue: "#ff5500");
|
|
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "HazardTintOpacity",
|
|
table: "dungeon_mob_abilities",
|
|
type: "float",
|
|
nullable: false,
|
|
defaultValue: 0.45f);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "HazardTintColor",
|
|
table: "dungeon_mob_abilities");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "HazardTintOpacity",
|
|
table: "dungeon_mob_abilities");
|
|
}
|
|
}
|
|
}
|