* Loadouts redux * Loadout window mockup * More workout * rent * validation * Developments * bcs * More cleanup * Rebuild working * Fix model and loading * obsession * efcore * We got a stew goin * Cleanup * Optional + SeniorEngineering fix * Fixes * Update science.yml * add add * Automatic naming * Update nukeops * Coming together * Right now * stargate * rejig the UI * weh * Loadouts tweaks * Merge conflicts + ordering fix * yerba mate * chocolat * More updates * Add multi-selection support * test h * fikss * a * add tech assistant and hazard suit * huh * Latest changes * add medical loadouts * and science * finish security loadouts * cargo * service done * added wildcards * add command * Move restrictions * Finalising * Fix existing work * Localise next batch * clothing fix * Fix storage names * review * the scooping room * Test fixes * Xamlify * Xamlify this too * Update Resources/Prototypes/Loadouts/Jobs/Medical/paramedic.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/loadout_groups.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/Jobs/Civilian/clown.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/Jobs/Civilian/clown.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/loadout_groups.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/Jobs/Security/detective.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * Update Resources/Prototypes/Loadouts/loadout_groups.yml Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com> * ben * Margins --------- Co-authored-by: Firewatch <54725557+musicmanvr@users.noreply.github.com> Co-authored-by: Mr. 27 <koolthunder019@gmail.com> Co-authored-by: Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
103 lines
4.4 KiB
C#
103 lines
4.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Content.Server.Database.Migrations.Sqlite
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Loadouts : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "profile_role_loadout",
|
|
columns: table => new
|
|
{
|
|
profile_role_loadout_id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
profile_id = table.Column<int>(type: "INTEGER", nullable: false),
|
|
role_name = table.Column<string>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_profile_role_loadout", x => x.profile_role_loadout_id);
|
|
table.ForeignKey(
|
|
name: "FK_profile_role_loadout_profile_profile_id",
|
|
column: x => x.profile_id,
|
|
principalTable: "profile",
|
|
principalColumn: "profile_id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "profile_loadout_group",
|
|
columns: table => new
|
|
{
|
|
profile_loadout_group_id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
profile_role_loadout_id = table.Column<int>(type: "INTEGER", nullable: false),
|
|
group_name = table.Column<string>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_profile_loadout_group", x => x.profile_loadout_group_id);
|
|
table.ForeignKey(
|
|
name: "FK_profile_loadout_group_profile_role_loadout_profile_role_loadout_id",
|
|
column: x => x.profile_role_loadout_id,
|
|
principalTable: "profile_role_loadout",
|
|
principalColumn: "profile_role_loadout_id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "profile_loadout",
|
|
columns: table => new
|
|
{
|
|
profile_loadout_id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
profile_loadout_group_id = table.Column<int>(type: "INTEGER", nullable: false),
|
|
loadout_name = table.Column<string>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_profile_loadout", x => x.profile_loadout_id);
|
|
table.ForeignKey(
|
|
name: "FK_profile_loadout_profile_loadout_group_profile_loadout_group_id",
|
|
column: x => x.profile_loadout_group_id,
|
|
principalTable: "profile_loadout_group",
|
|
principalColumn: "profile_loadout_group_id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_profile_loadout_profile_loadout_group_id",
|
|
table: "profile_loadout",
|
|
column: "profile_loadout_group_id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_profile_loadout_group_profile_role_loadout_id",
|
|
table: "profile_loadout_group",
|
|
column: "profile_role_loadout_id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_profile_role_loadout_profile_id",
|
|
table: "profile_role_loadout",
|
|
column: "profile_id");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "profile_loadout");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "profile_loadout_group");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "profile_role_loadout");
|
|
}
|
|
}
|
|
}
|