using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Hutopy.Modules.Tipping.Migrations { /// public partial class TippingIssues : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "StripeSessionId", schema: "Tipping", table: "Tips", type: "character varying(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "StripeInvoiceUrl", schema: "Tipping", table: "Tips", type: "character varying(2048)", maxLength: 2048, nullable: true, oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "Message", schema: "Tipping", table: "Tips", type: "character varying(2048)", maxLength: 2048, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Currency", schema: "Tipping", table: "Tips", type: "character varying(8)", maxLength: 8, nullable: false, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "StripeSessionId", schema: "Tipping", table: "Tips", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "StripeInvoiceUrl", schema: "Tipping", table: "Tips", type: "text", nullable: true, oldClrType: typeof(string), oldType: "character varying(2048)", oldMaxLength: 2048, oldNullable: true); migrationBuilder.AlterColumn( name: "Message", schema: "Tipping", table: "Tips", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(2048)", oldMaxLength: 2048); migrationBuilder.AlterColumn( name: "Currency", schema: "Tipping", table: "Tips", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(8)", oldMaxLength: 8); } } }