using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NexusReader.Data.Migrations { /// public partial class IncreaseHashLength : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CreatedAt", table: "SemanticKnowledgeCache", type: "timestamp without time zone", nullable: false, oldClrType: typeof(DateTime), oldType: "timestamp with time zone"); migrationBuilder.AlterColumn( name: "ContentHash", table: "SemanticKnowledgeCache", type: "character varying(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "character varying(64)", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "LastReadDate", table: "Ebooks", type: "timestamp without time zone", nullable: true, oldClrType: typeof(DateTime), oldType: "timestamp with time zone", oldNullable: true); migrationBuilder.AlterColumn( name: "AddedDate", table: "Ebooks", type: "timestamp without time zone", nullable: false, oldClrType: typeof(DateTime), oldType: "timestamp with time zone"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CreatedAt", table: "SemanticKnowledgeCache", type: "timestamp with time zone", nullable: false, oldClrType: typeof(DateTime), oldType: "timestamp without time zone"); migrationBuilder.AlterColumn( name: "ContentHash", table: "SemanticKnowledgeCache", type: "character varying(64)", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "character varying(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "LastReadDate", table: "Ebooks", type: "timestamp with time zone", nullable: true, oldClrType: typeof(DateTime), oldType: "timestamp without time zone", oldNullable: true); migrationBuilder.AlterColumn( name: "AddedDate", table: "Ebooks", type: "timestamp with time zone", nullable: false, oldClrType: typeof(DateTime), oldType: "timestamp without time zone"); } } }