Added .shopreq - Shop items can now have a role requirement in order to purchase. Added .shopbuy alias for .buy

This commit is contained in:
Kwoth
2022-09-13 21:33:20 +02:00
parent d1a818542c
commit f23ffe0c67
16 changed files with 17490 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NadekoBot.Migrations
{
public partial class shoprolereq : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<ulong>(
name: "RoleRequirement",
table: "ShopEntry",
type: "INTEGER",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RoleRequirement",
table: "ShopEntry");
}
}
}

View File

@@ -1745,6 +1745,9 @@ namespace NadekoBot.Migrations
b.Property<string>("RoleName")
.HasColumnType("TEXT");
b.Property<ulong?>("RoleRequirement")
.HasColumnType("INTEGER");
b.Property<int>("Type")
.HasColumnType("INTEGER");