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