Files
EngineeringSync/EngineeringSync.Infrastructure/Migrations/20260326161840_AddBackupSettingsToProjectConfig.cs

51 lines
1.4 KiB
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EngineeringSync.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddBackupSettingsToProjectConfig : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "BackupEnabled",
table: "Projects",
type: "INTEGER",
nullable: false,
defaultValue: true);
migrationBuilder.AddColumn<string>(
name: "BackupPath",
table: "Projects",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "MaxBackupsPerFile",
table: "Projects",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BackupEnabled",
table: "Projects");
migrationBuilder.DropColumn(
name: "BackupPath",
table: "Projects");
migrationBuilder.DropColumn(
name: "MaxBackupsPerFile",
table: "Projects");
}
}
}