using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Tnsu.ApprovalRoute.Infrastructure.Persistence.Migrations { /// public partial class AddSlaSettings : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ask_overdue_reason", table: "template_route_steps", type: "boolean", nullable: true); migrationBuilder.AddColumn( name: "sla_hours", table: "template_route_steps", type: "integer", nullable: true); migrationBuilder.AddColumn( name: "ask_overdue_reason", table: "request_types", type: "boolean", nullable: true); migrationBuilder.AddColumn( name: "sla_hours", table: "request_types", type: "integer", nullable: true); migrationBuilder.CreateTable( name: "settings", columns: table => new { option_name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), file_data = table.Column(type: "bytea", nullable: true), value = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("pk_settings", x => x.option_name); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "settings"); migrationBuilder.DropColumn( name: "ask_overdue_reason", table: "template_route_steps"); migrationBuilder.DropColumn( name: "sla_hours", table: "template_route_steps"); migrationBuilder.DropColumn( name: "ask_overdue_reason", table: "request_types"); migrationBuilder.DropColumn( name: "sla_hours", table: "request_types"); } } }