using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Migrations { /// public partial class dev1303254 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Tag", table: "Tags", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Title", table: "Notifications", type: "character varying(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Message", table: "Notifications", type: "character varying(512)", maxLength: 512, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Url", table: "NotificationConnectors", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "HttpMethod", table: "NotificationConnectors", type: "character varying(8)", maxLength: 8, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Body", table: "NotificationConnectors", type: "character varying(512)", maxLength: 512, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "MangaTagsTag", table: "MangaMangaTag", type: "character varying(64)", nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "IconUrl", table: "MangaConnectors", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Name", table: "Manga", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "character varying(512)", oldMaxLength: 512); migrationBuilder.AlterColumn( name: "LinkUrl", table: "Link", type: "character varying(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "LinkProvider", table: "Link", type: "character varying(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "BaseUrl", table: "LibraryConnectors", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Auth", table: "LibraryConnectors", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "DependsOnJobsIds", table: "Jobs", type: "text[]", maxLength: 64, nullable: false, defaultValue: new string[0], oldClrType: typeof(string[]), oldType: "text[]", oldMaxLength: 64, oldNullable: true); migrationBuilder.AlterColumn( name: "Url", table: "Chapters", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Title", table: "Chapters", type: "character varying(256)", maxLength: 256, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "ArchiveFileName", table: "Chapters", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "AuthorName", table: "Authors", type: "character varying(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Title", table: "AltTitles", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Tag", table: "Tags", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Title", table: "Notifications", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "Message", table: "Notifications", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(512)", oldMaxLength: 512); migrationBuilder.AlterColumn( name: "Url", table: "NotificationConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "HttpMethod", table: "NotificationConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(8)", oldMaxLength: 8); migrationBuilder.AlterColumn( name: "Body", table: "NotificationConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(512)", oldMaxLength: 512); migrationBuilder.AlterColumn( name: "MangaTagsTag", table: "MangaMangaTag", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(64)"); migrationBuilder.AlterColumn( name: "IconUrl", table: "MangaConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "Name", table: "Manga", type: "character varying(512)", maxLength: 512, nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "LinkUrl", table: "Link", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "LinkProvider", table: "Link", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "BaseUrl", table: "LibraryConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "Auth", table: "LibraryConnectors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "DependsOnJobsIds", table: "Jobs", type: "text[]", maxLength: 64, nullable: true, oldClrType: typeof(string[]), oldType: "text[]", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "Url", table: "Chapters", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "Title", table: "Chapters", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256, oldNullable: true); migrationBuilder.AlterColumn( name: "ArchiveFileName", table: "Chapters", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "AuthorName", table: "Authors", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "Title", table: "AltTitles", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); } } }