Files
systemrevivalserver/Migrations/20260119152755_AddLinearProjectileProperties.cs
T
2026-01-19 10:46:37 -05:00

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");
}
}
}