using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Nuuru.Server.Migrations { /// public partial class UpdateSeeExtendedDefaults : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SeeExtendedNas", table: "UserSettings", type: "INTEGER", nullable: false, defaultValue: true, oldClrType: typeof(bool), oldType: "INTEGER", oldDefaultValue: false); migrationBuilder.AlterColumn( name: "SeeExtendedMedia", table: "UserSettings", type: "INTEGER", nullable: false, defaultValue: true, oldClrType: typeof(bool), oldType: "INTEGER", oldDefaultValue: false); migrationBuilder.Sql("UPDATE UserSettings SET SeeExtendedNas = 1, SeeExtendedMedia = 1"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SeeExtendedNas", table: "UserSettings", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldDefaultValue: true); migrationBuilder.AlterColumn( name: "SeeExtendedMedia", table: "UserSettings", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldDefaultValue: true); } } }