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