using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace MareSynchronosServer.Migrations { public partial class SetMaxLimitForStrings : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "character_identification", table: "users", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "lodestone_auth_string", table: "lodestone_auth", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "hashed_lodestone_id", table: "lodestone_auth", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "forbidden_by", table: "forbidden_upload_entries", type: "character varying(100)", maxLength: 100, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "character_identification", table: "banned_users", type: "character varying(100)", maxLength: 100, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "discord_id_or_lodestone_auth", table: "banned_registrations", type: "character varying(100)", maxLength: 100, nullable: false, oldClrType: typeof(string), oldType: "text"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "character_identification", table: "users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "lodestone_auth_string", table: "lodestone_auth", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "hashed_lodestone_id", table: "lodestone_auth", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "forbidden_by", table: "forbidden_upload_entries", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100, oldNullable: true); migrationBuilder.AlterColumn( name: "character_identification", table: "banned_users", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100); migrationBuilder.AlterColumn( name: "discord_id_or_lodestone_auth", table: "banned_registrations", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(100)", oldMaxLength: 100); } } }