using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DysonNetwork.Sphere.Migrations { /// public partial class DontKnowHowToNameThing2 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "type", table: "chat_messages"); migrationBuilder.AlterColumn( name: "nonce", table: "chat_messages", type: "character varying(36)", maxLength: 36, nullable: false, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "nonce", table: "chat_messages", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(36)", oldMaxLength: 36); migrationBuilder.AddColumn( name: "type", table: "chat_messages", type: "character varying(1024)", maxLength: 1024, nullable: false, defaultValue: ""); } } }