| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
- #nullable disable
- namespace Content.Server.Database.Migrations.Postgres
- {
- /// <inheritdoc />
- public partial class BanTemplate : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "ban_template",
- columns: table => new
- {
- ban_template_id = table.Column<int>(type: "integer", nullable: false)
- .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
- title = table.Column<string>(type: "text", nullable: false),
- length = table.Column<TimeSpan>(type: "interval", nullable: false),
- reason = table.Column<string>(type: "text", nullable: false),
- exempt_flags = table.Column<int>(type: "integer", nullable: false),
- severity = table.Column<int>(type: "integer", nullable: false),
- auto_delete = table.Column<bool>(type: "boolean", nullable: false),
- hidden = table.Column<bool>(type: "boolean", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_ban_template", x => x.ban_template_id);
- });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "ban_template");
- }
- }
- }
|