using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Migrations.Manga { /// public partial class KeyLengthChange : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "MangaId", table: "MetadataEntries", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "MangaIds", table: "MangaTagToManga", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "Mangas", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "MangaConnectorToManga", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "MangaConnectorToChapter", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "MangaKey", table: "Link", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "Link", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "FileLibraries", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "Chapters", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "MangaIds", table: "AuthorToManga", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "AuthorIds", table: "AuthorToManga", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "Authors", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "MangaKey", table: "AltTitle", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Key", table: "AltTitle", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "MangaId", table: "MetadataEntries", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "MangaIds", table: "MangaTagToManga", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "Key", table: "Mangas", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Key", table: "MangaConnectorToManga", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Key", table: "MangaConnectorToChapter", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "MangaKey", table: "Link", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "Key", table: "Link", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Key", table: "FileLibraries", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Key", table: "Chapters", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "MangaIds", table: "AuthorToManga", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "AuthorIds", table: "AuthorToManga", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "Key", table: "Authors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "MangaKey", table: "AltTitle", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "Key", table: "AltTitle", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); } } }