Files
caliverse_server/BrokerApiCore/Migrations/20250317032756_SchemaChanges_122745.cs
2025-05-01 07:23:28 +09:00

53 lines
1.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BrokerApiServer.Migrations
{
/// <inheritdoc />
public partial class SchemaChanges_122745 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
table: "planet_exchange_order_amount_total_limits");
migrationBuilder.DropColumn(
name: "PlanetId",
table: "planet_exchange_order_amount_user_limits");
migrationBuilder.DropColumn(
name: "planet_id",
table: "planet_exchange_order_amount_total_limits");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PlanetId",
table: "planet_exchange_order_amount_user_limits",
type: "longtext",
nullable: false)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "planet_id",
table: "planet_exchange_order_amount_total_limits",
type: "varchar(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
comment: "플래닛 아이디")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateIndex(
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
table: "planet_exchange_order_amount_total_limits",
column: "planet_id");
}
}
}