mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 07:29:00 -07:00
173 lines
5.0 KiB
C#
173 lines
5.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RadicadeServer.Migrations
|
|
{
|
|
|
|
public partial class ExtendGiftItemsForStorefronts : Migration
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "AvatarItemType",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Context",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "CurrencyType",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EquipmentModificationGuid",
|
|
table: "GiftItems",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsFeatured",
|
|
table: "GiftItems",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsQuery",
|
|
table: "GiftItems",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ItemSetFriendlyName",
|
|
table: "GiftItems",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "ItemSetId",
|
|
table: "GiftItems",
|
|
type: "bigint",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Price",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "PurchasableItemId",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Rarity",
|
|
table: "GiftItems",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "SubscribersOnly",
|
|
table: "GiftItems",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Tooltip",
|
|
table: "GiftItems",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Unique",
|
|
table: "GiftItems",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "AvatarItemType",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Context",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CurrencyType",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EquipmentModificationGuid",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsFeatured",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsQuery",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ItemSetFriendlyName",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ItemSetId",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Price",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PurchasableItemId",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Rarity",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubscribersOnly",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Tooltip",
|
|
table: "GiftItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Unique",
|
|
table: "GiftItems");
|
|
}
|
|
}
|
|
}
|