20240112194620_Blacklist.cs 916 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Content.Server.Database.Migrations.Postgres
  5. {
  6. /// <inheritdoc />
  7. public partial class Blacklist : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.CreateTable(
  13. name: "blacklist",
  14. columns: table => new
  15. {
  16. user_id = table.Column<Guid>(type: "uuid", nullable: false)
  17. },
  18. constraints: table =>
  19. {
  20. table.PrimaryKey("PK_blacklist", x => x.user_id);
  21. });
  22. }
  23. /// <inheritdoc />
  24. protected override void Down(MigrationBuilder migrationBuilder)
  25. {
  26. migrationBuilder.DropTable(
  27. name: "blacklist");
  28. }
  29. }
  30. }