20260219090105_AddCoinMarket.cs 751 B

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