| 123456789101112131415161718192021222324252627282930313233343536 |
- using Microsoft.EntityFrameworkCore.Migrations;
-
- #nullable disable
-
- namespace Diligent.WebAPI.Data.Migrations
- {
- public partial class DefaultDisabledUser : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<bool>(
- name: "IsEnabled",
- table: "AspNetUsers",
- type: "bit",
- nullable: true,
- defaultValue: true,
- oldClrType: typeof(bool),
- oldType: "bit",
- oldDefaultValue: true);
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<bool>(
- name: "IsEnabled",
- table: "AspNetUsers",
- type: "bit",
- nullable: false,
- defaultValue: true,
- oldClrType: typeof(bool),
- oldType: "bit",
- oldNullable: true,
- oldDefaultValue: true);
- }
- }
- }
|