20260219090105_AddCoinMarket.cs 845 B

12345678910111213141516171819202122232425262728293031
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddCoinMarket : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<string>(
  12. name: "Market",
  13. table: "Coin",
  14. type: "nvarchar(30)",
  15. maxLength: 30,
  16. nullable: false,
  17. defaultValue: "",
  18. comment: "거래쌍 (KRW-BTC 등)");
  19. }
  20. /// <inheritdoc />
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.DropColumn(
  24. name: "Market",
  25. table: "Coin");
  26. }
  27. }
  28. }