using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Hutopy.Web.Features.Contents.Data.Migrations { /// public partial class LongerStringPresentationInfos : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "VideoUrlMain", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "VideoUrl", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "VideoText", schema: "Content", table: "PresentationInfos", type: "character varying(10000)", maxLength: 10000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "VideoSubtitleMain", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "VideoSubtitle", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "Title", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "MainVideoText", schema: "Content", table: "PresentationInfos", type: "character varying(10000)", maxLength: 10000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "MainImageUrl", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "MainImageText", schema: "Content", table: "PresentationInfos", type: "character varying(10000)", maxLength: 10000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "ImagesText", schema: "Content", table: "PresentationInfos", type: "character varying(10000)", maxLength: 10000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "ImagesSubtitle", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "Image4Url", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "Image3Url", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "Image2Url", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); migrationBuilder.AlterColumn( name: "Image1Url", schema: "Content", table: "PresentationInfos", type: "character varying(2000)", maxLength: 2000, nullable: false, oldClrType: typeof(string), oldType: "character varying(255)", oldMaxLength: 255); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "VideoUrlMain", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "VideoUrl", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "VideoText", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(10000)", oldMaxLength: 10000); migrationBuilder.AlterColumn( name: "VideoSubtitleMain", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "VideoSubtitle", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "Title", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "MainVideoText", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(10000)", oldMaxLength: 10000); migrationBuilder.AlterColumn( name: "MainImageUrl", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "MainImageText", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(10000)", oldMaxLength: 10000); migrationBuilder.AlterColumn( name: "ImagesText", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(10000)", oldMaxLength: 10000); migrationBuilder.AlterColumn( name: "ImagesSubtitle", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "Image4Url", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "Image3Url", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "Image2Url", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); migrationBuilder.AlterColumn( name: "Image1Url", schema: "Content", table: "PresentationInfos", type: "character varying(255)", maxLength: 255, nullable: false, oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); } } }