2024-02-07 15:40:36 +00:00
|
|
|
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
|
2023-11-20 18:58:30 +00:00
|
|
|
|
2023-11-15 19:00:08 +00:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace Server.DB.Migrations;
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
2025-01-16 13:30:40 +00:00
|
|
|
public partial class GuildIsNotRequired : Migration {
|
2023-11-15 19:00:08 +00:00
|
|
|
/// <inheritdoc />
|
2025-01-16 13:30:40 +00:00
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) {
|
2023-11-15 19:00:08 +00:00
|
|
|
migrationBuilder.RenameColumn(
|
|
|
|
name: "ItemType",
|
|
|
|
table: "InventoryItem",
|
|
|
|
newName: "InventoryTab");
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
2025-01-16 13:30:40 +00:00
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) {
|
2023-11-15 19:00:08 +00:00
|
|
|
migrationBuilder.RenameColumn(
|
|
|
|
name: "InventoryTab",
|
|
|
|
table: "InventoryItem",
|
|
|
|
newName: "ItemType");
|
|
|
|
}
|
|
|
|
}
|