96 lines
2.7 KiB
C#
96 lines
2.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassiApp.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AppUserMangoPay : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "KycPassed",
|
|
table: "AppUsers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "KycPassedDate",
|
|
table: "AppUsers",
|
|
type: "INTEGER",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "MainResidenceCode",
|
|
table: "AppUsers",
|
|
type: "TEXT",
|
|
maxLength: 2,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NationalityCode",
|
|
table: "AppUsers",
|
|
type: "TEXT",
|
|
maxLength: 2,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PaymentId",
|
|
table: "AppUsers",
|
|
type: "TEXT",
|
|
maxLength: 255,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Verified",
|
|
table: "AppUsers",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "VerifiedDate",
|
|
table: "AppUsers",
|
|
type: "INTEGER",
|
|
nullable: true);
|
|
|
|
System.Diagnostics.Debug.WriteLine($"Migration AppUserMangoPay done");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "KycPassed",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "KycPassedDate",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "MainResidenceCode",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "NationalityCode",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PaymentId",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Verified",
|
|
table: "AppUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VerifiedDate",
|
|
table: "AppUsers");
|
|
}
|
|
}
|
|
}
|