52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace SystemRevivalServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddLinearProjectileProperties : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsLinearProjectile",
|
|
table: "dungeon_item_definitions",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ProjectileBackFrame",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ProjectileFrontFrame",
|
|
table: "dungeon_item_definitions",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsLinearProjectile",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProjectileBackFrame",
|
|
table: "dungeon_item_definitions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ProjectileFrontFrame",
|
|
table: "dungeon_item_definitions");
|
|
}
|
|
}
|
|
}
|