Sla (#11)
Tests / backend-test (push) Successful in 1m50s
Tests / frontend-test (push) Successful in 49s

Co-authored-by: gorbenko.pavel <gorbenko.pavel@tansu.kz>
Reviewed-on: http://git.tnsu.kz/gorbenko.pavel/tnsu-approval-route/pulls/11
This commit was merged in pull request #11.
This commit is contained in:
2026-08-13 04:44:08 +00:00
parent 7f2aabbf29
commit d076f4e98d
103 changed files with 2606 additions and 1265 deletions
@@ -0,0 +1,74 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Tnsu.ApprovalRoute.Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class AddSlaSettings : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "ask_overdue_reason",
table: "template_route_steps",
type: "boolean",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "sla_hours",
table: "template_route_steps",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "ask_overdue_reason",
table: "request_types",
type: "boolean",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "sla_hours",
table: "request_types",
type: "integer",
nullable: true);
migrationBuilder.CreateTable(
name: "settings",
columns: table => new
{
option_name = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
file_data = table.Column<byte[]>(type: "bytea", nullable: true),
value = table.Column<string>(type: "text", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_settings", x => x.option_name);
});
}
/// <inheritdoc />
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");
}
}
}