using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Bit.SqliteMigrations.Migrations; /// public partial class OrganizationUserAccessAllDefaultValue : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_OrganizationUser_UserId_OrganizationId_Status", table: "OrganizationUser"); migrationBuilder.AlterColumn( name: "AccessAll", table: "OrganizationUser", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "AccessAll", table: "OrganizationUser", type: "INTEGER", nullable: false, oldClrType: typeof(bool), oldType: "INTEGER", oldDefaultValue: false); migrationBuilder.CreateIndex( name: "IX_OrganizationUser_UserId_OrganizationId_Status", table: "OrganizationUser", columns: new[] { "UserId", "OrganizationId", "Status" }); } }