초기커밋
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user