20201203093409_ClothingAndPronouns.cs 1008 B

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