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