1
0

20240301130602_ClothingRemoval.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Content.Server.Database.Migrations.Sqlite
  4. {
  5. /// <inheritdoc />
  6. public partial class ClothingRemoval : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.DropColumn(
  12. name: "backpack",
  13. table: "profile");
  14. migrationBuilder.DropColumn(
  15. name: "clothing",
  16. table: "profile");
  17. }
  18. /// <inheritdoc />
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AddColumn<string>(
  22. name: "backpack",
  23. table: "profile",
  24. type: "TEXT",
  25. nullable: false,
  26. defaultValue: "");
  27. migrationBuilder.AddColumn<string>(
  28. name: "clothing",
  29. table: "profile",
  30. type: "TEXT",
  31. nullable: false,
  32. defaultValue: "");
  33. }
  34. }
  35. }