using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Bit.SqliteMigrations.Migrations; /// public partial class UpdateNullConstraints : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Culture", table: "User", type: "TEXT", maxLength: 10, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 10, oldNullable: true); migrationBuilder.AlterColumn( name: "PostalCode", table: "TaxRate", type: "TEXT", maxLength: 10, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 10, oldNullable: true); migrationBuilder.AlterColumn( name: "Country", table: "TaxRate", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "PlanName", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "InvoiceId", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "ClientName", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "Txt", table: "OrganizationDomain", type: "TEXT", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "DomainName", table: "OrganizationDomain", type: "TEXT", maxLength: 255, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 255, oldNullable: true); migrationBuilder.AlterColumn( name: "ApiKey", table: "OrganizationApiKey", type: "TEXT", maxLength: 30, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 30, oldNullable: true); migrationBuilder.AlterColumn( name: "Key", table: "Installation", type: "TEXT", maxLength: 150, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 150, oldNullable: true); migrationBuilder.AlterColumn( name: "Email", table: "Installation", type: "TEXT", maxLength: 256, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 256, oldNullable: true); migrationBuilder.AlterColumn( name: "Name", table: "Device", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "Identifier", table: "Device", type: "TEXT", maxLength: 50, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50, oldNullable: true); migrationBuilder.AlterColumn( name: "Name", table: "Collection", type: "TEXT", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Scope", table: "ApiKey", type: "TEXT", maxLength: 4000, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 4000, oldNullable: true); migrationBuilder.AlterColumn( name: "Name", table: "ApiKey", type: "TEXT", maxLength: 200, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 200, oldNullable: true); migrationBuilder.AlterColumn( name: "Key", table: "ApiKey", type: "TEXT", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "EncryptedPayload", table: "ApiKey", type: "TEXT", maxLength: 4000, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 4000, oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Culture", table: "User", type: "TEXT", maxLength: 10, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 10); migrationBuilder.AlterColumn( name: "PostalCode", table: "TaxRate", type: "TEXT", maxLength: 10, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 10); migrationBuilder.AlterColumn( name: "Country", table: "TaxRate", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "PlanName", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "InvoiceId", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "ClientName", table: "ProviderInvoiceItem", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "Txt", table: "OrganizationDomain", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "DomainName", table: "OrganizationDomain", type: "TEXT", maxLength: 255, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "ApiKey", table: "OrganizationApiKey", type: "TEXT", maxLength: 30, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 30); migrationBuilder.AlterColumn( name: "Key", table: "Installation", type: "TEXT", maxLength: 150, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 150); migrationBuilder.AlterColumn( name: "Email", table: "Installation", type: "TEXT", maxLength: 256, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "Name", table: "Device", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "Identifier", table: "Device", type: "TEXT", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 50); migrationBuilder.AlterColumn( name: "Name", table: "Collection", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Scope", table: "ApiKey", type: "TEXT", maxLength: 4000, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 4000); migrationBuilder.AlterColumn( name: "Name", table: "ApiKey", type: "TEXT", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 200); migrationBuilder.AlterColumn( name: "Key", table: "ApiKey", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "EncryptedPayload", table: "ApiKey", type: "TEXT", maxLength: 4000, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 4000); } }