-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #768 from planetarium/feature/custom-equipment-craft
Feature/custom equipment craft
- Loading branch information
Showing
19 changed files
with
9,544 additions
and
14 deletions.
There are no files selected for viewing
4,327 changes: 4,327 additions & 0 deletions
4,327
...les.DataProvider.Executable/Migrations/20240807132232_AddCustomEquipmentCraft.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
NineChronicles.DataProvider.Executable/Migrations/20240807132232_AddCustomEquipmentCraft.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace NineChronicles.DataProvider.Executable.Migrations | ||
{ | ||
public partial class AddCustomEquipmentCraft : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "CustomEquipmentCraft", | ||
columns: table => new | ||
{ | ||
Id = table.Column<string>(type: "varchar(255)", nullable: false) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
BlockIndex = table.Column<long>(type: "bigint", nullable: false), | ||
AvatarAddress = table.Column<string>(type: "varchar(255)", nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
EquipmentItemId = table.Column<int>(type: "int", nullable: false), | ||
RecipeId = table.Column<int>(type: "int", nullable: false), | ||
SlotIndex = table.Column<int>(type: "int", nullable: false), | ||
ItemSubType = table.Column<string>(type: "longtext", nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
IconId = table.Column<int>(type: "int", nullable: false), | ||
ElementalType = table.Column<string>(type: "longtext", nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
DrawingAmount = table.Column<int>(type: "int", nullable: false), | ||
DrawingToolAmount = table.Column<int>(type: "int", nullable: false), | ||
NcgCost = table.Column<decimal>(type: "decimal(65,30)", nullable: false), | ||
AdditionalCost = table.Column<string>(type: "longtext", nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
Date = table.Column<DateOnly>(type: "date", nullable: false), | ||
TimeStamp = table.Column<DateTimeOffset>(type: "datetime(6)", nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_CustomEquipmentCraft", x => x.Id); | ||
table.ForeignKey( | ||
name: "FK_CustomEquipmentCraft_Avatars_AvatarAddress", | ||
column: x => x.AvatarAddress, | ||
principalTable: "Avatars", | ||
principalColumn: "Address"); | ||
}) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "CustomEquipmentCraftCount", | ||
columns: table => new | ||
{ | ||
IconId = table.Column<int>(type: "int", nullable: false) | ||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), | ||
ItemSubType = table.Column<string>(type: "longtext", nullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4"), | ||
Count = table.Column<long>(type: "bigint", nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_CustomEquipmentCraftCount", x => x.IconId); | ||
}) | ||
.Annotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_CustomEquipmentCraft_AvatarAddress", | ||
table: "CustomEquipmentCraft", | ||
column: "AvatarAddress"); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "CustomEquipmentCraft"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "CustomEquipmentCraftCount"); | ||
} | ||
} | ||
} |
Oops, something went wrong.