| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Content.Server.Database.Migrations.Postgres
- {
- public partial class ServerBanExemption : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<int>(
- name: "exempt_flags",
- table: "server_ban",
- type: "integer",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.CreateTable(
- name: "server_ban_exemption",
- columns: table => new
- {
- user_id = table.Column<Guid>(type: "uuid", nullable: false),
- flags = table.Column<int>(type: "integer", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_server_ban_exemption", x => x.user_id);
- table.CheckConstraint("FlagsNotZero", "flags != 0");
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "server_ban_exemption");
- migrationBuilder.DropColumn(
- name: "exempt_flags",
- table: "server_ban");
- }
- }
- }
|