1
0

20220103235647_whitelist.cs 839 B

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