29 lines
920 B
C#
29 lines
920 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
||
#nullable disable
|
||
|
||
namespace PARR.DAL.Migrations
|
||
{
|
||
/// <inheritdoc />
|
||
public partial class tblSettingsAddWeekendCacheTtl : Migration
|
||
{
|
||
/// <inheritdoc />
|
||
protected override void Up(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.InsertData(
|
||
table: "Settings",
|
||
columns: new[] { "Name", "Description", "Value" },
|
||
values: new object[] { "WeekendCacheTtl", "Время хранения в кэше данных о выходных и рабочих днях", "01:00:00" });
|
||
}
|
||
|
||
/// <inheritdoc />
|
||
protected override void Down(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.DeleteData(
|
||
table: "Settings",
|
||
keyColumn: "Name",
|
||
keyValue: "WeekendCacheTtl");
|
||
}
|
||
}
|
||
}
|