chore: run dotnet format
This commit is contained in:
@@ -1,81 +1,82 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class InstitutionAndMetadata : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class InstitutionAndMetadata : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.CreateTable(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "Institution",
|
||||||
{
|
columns: table => new
|
||||||
migrationBuilder.CreateTable(
|
{
|
||||||
name: "Institution",
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
columns: table => new
|
UserId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
{
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
||||||
UserId = table.Column<Guid>(type: "TEXT", nullable: false),
|
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
||||||
Name = table.Column<string>(type: "TEXT", nullable: false),
|
},
|
||||||
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
constraints: table =>
|
||||||
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
{
|
||||||
},
|
table.PrimaryKey("PK_Institution", x => x.Id);
|
||||||
constraints: table =>
|
table.ForeignKey(
|
||||||
{
|
name: "FK_Institution_Users_UserId",
|
||||||
table.PrimaryKey("PK_Institution", x => x.Id);
|
column: x => x.UserId,
|
||||||
table.ForeignKey(
|
principalTable: "Users",
|
||||||
name: "FK_Institution_Users_UserId",
|
principalColumn: "Id",
|
||||||
column: x => x.UserId,
|
onDelete: ReferentialAction.Cascade);
|
||||||
principalTable: "Users",
|
});
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "InstitutionMetadata",
|
name: "InstitutionMetadata",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
Type = table.Column<string>(type: "TEXT", maxLength: 21, nullable: false),
|
Type = table.Column<string>(type: "TEXT", maxLength: 21, nullable: false),
|
||||||
InstitutionId = table.Column<Guid>(type: "TEXT", nullable: false),
|
InstitutionId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
PlaidId = table.Column<string>(type: "TEXT", nullable: true),
|
PlaidId = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
PlaidName = table.Column<string>(type: "TEXT", nullable: true),
|
PlaidName = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
EncryptedAccessToken = table.Column<string>(type: "TEXT", nullable: true),
|
EncryptedAccessToken = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
||||||
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_InstitutionMetadata", x => x.Id);
|
table.PrimaryKey("PK_InstitutionMetadata", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_InstitutionMetadata_Institution_InstitutionId",
|
name: "FK_InstitutionMetadata_Institution_InstitutionId",
|
||||||
column: x => x.InstitutionId,
|
column: x => x.InstitutionId,
|
||||||
principalTable: "Institution",
|
principalTable: "Institution",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Institution_UserId",
|
name: "IX_Institution_UserId",
|
||||||
table: "Institution",
|
table: "Institution",
|
||||||
column: "UserId");
|
column: "UserId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_InstitutionMetadata_InstitutionId",
|
name: "IX_InstitutionMetadata_InstitutionId",
|
||||||
table: "InstitutionMetadata",
|
table: "InstitutionMetadata",
|
||||||
column: "InstitutionId",
|
column: "InstitutionId",
|
||||||
unique: true);
|
unique: true);
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "InstitutionMetadata");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "Institution");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "InstitutionMetadata");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Institution");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,92 +1,93 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AccountAndMetadata : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AccountAndMetadata : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.CreateTable(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "Account",
|
||||||
{
|
columns: table => new
|
||||||
migrationBuilder.CreateTable(
|
{
|
||||||
name: "Account",
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
columns: table => new
|
UserId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
{
|
InstituionId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
UserId = table.Column<Guid>(type: "TEXT", nullable: false),
|
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
||||||
InstituionId = table.Column<Guid>(type: "TEXT", nullable: false),
|
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
||||||
Name = table.Column<string>(type: "TEXT", nullable: false),
|
},
|
||||||
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
constraints: table =>
|
||||||
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
{
|
||||||
},
|
table.PrimaryKey("PK_Account", x => x.Id);
|
||||||
constraints: table =>
|
table.ForeignKey(
|
||||||
{
|
name: "FK_Account_Institution_InstituionId",
|
||||||
table.PrimaryKey("PK_Account", x => x.Id);
|
column: x => x.InstituionId,
|
||||||
table.ForeignKey(
|
principalTable: "Institution",
|
||||||
name: "FK_Account_Institution_InstituionId",
|
principalColumn: "Id",
|
||||||
column: x => x.InstituionId,
|
onDelete: ReferentialAction.Cascade);
|
||||||
principalTable: "Institution",
|
table.ForeignKey(
|
||||||
principalColumn: "Id",
|
name: "FK_Account_Users_UserId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
column: x => x.UserId,
|
||||||
table.ForeignKey(
|
principalTable: "Users",
|
||||||
name: "FK_Account_Users_UserId",
|
principalColumn: "Id",
|
||||||
column: x => x.UserId,
|
onDelete: ReferentialAction.Cascade);
|
||||||
principalTable: "Users",
|
});
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "AccountMetadata",
|
name: "AccountMetadata",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
Type = table.Column<string>(type: "TEXT", maxLength: 21, nullable: false),
|
Type = table.Column<string>(type: "TEXT", maxLength: 21, nullable: false),
|
||||||
AccountId = table.Column<Guid>(type: "TEXT", nullable: false),
|
AccountId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
PlaidId = table.Column<string>(type: "TEXT", nullable: true),
|
PlaidId = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
PlaidName = table.Column<string>(type: "TEXT", nullable: true),
|
PlaidName = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
||||||
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_AccountMetadata", x => x.Id);
|
table.PrimaryKey("PK_AccountMetadata", x => x.Id);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_AccountMetadata_Account_AccountId",
|
name: "FK_AccountMetadata_Account_AccountId",
|
||||||
column: x => x.AccountId,
|
column: x => x.AccountId,
|
||||||
principalTable: "Account",
|
principalTable: "Account",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Account_InstituionId",
|
name: "IX_Account_InstituionId",
|
||||||
table: "Account",
|
table: "Account",
|
||||||
column: "InstituionId");
|
column: "InstituionId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Account_UserId",
|
name: "IX_Account_UserId",
|
||||||
table: "Account",
|
table: "Account",
|
||||||
column: "UserId");
|
column: "UserId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_AccountMetadata_AccountId",
|
name: "IX_AccountMetadata_AccountId",
|
||||||
table: "AccountMetadata",
|
table: "AccountMetadata",
|
||||||
column: "AccountId",
|
column: "AccountId",
|
||||||
unique: true);
|
unique: true);
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "AccountMetadata");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "Account");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AccountMetadata");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Account");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,59 +4,59 @@
|
|||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class FixAccountInstitutionColumnName : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class FixAccountInstitutionColumnName : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.DropForeignKey(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "FK_Account_Institution_InstituionId",
|
||||||
{
|
table: "Account");
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_Account_Institution_InstituionId",
|
|
||||||
table: "Account");
|
|
||||||
|
|
||||||
migrationBuilder.RenameColumn(
|
migrationBuilder.RenameColumn(
|
||||||
name: "InstituionId",
|
name: "InstituionId",
|
||||||
table: "Account",
|
table: "Account",
|
||||||
newName: "InstitutionId");
|
newName: "InstitutionId");
|
||||||
|
|
||||||
migrationBuilder.RenameIndex(
|
migrationBuilder.RenameIndex(
|
||||||
name: "IX_Account_InstituionId",
|
name: "IX_Account_InstituionId",
|
||||||
table: "Account",
|
table: "Account",
|
||||||
newName: "IX_Account_InstitutionId");
|
newName: "IX_Account_InstitutionId");
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
name: "FK_Account_Institution_InstitutionId",
|
name: "FK_Account_Institution_InstitutionId",
|
||||||
table: "Account",
|
table: "Account",
|
||||||
column: "InstitutionId",
|
column: "InstitutionId",
|
||||||
principalTable: "Institution",
|
principalTable: "Institution",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_Account_Institution_InstitutionId",
|
|
||||||
table: "Account");
|
|
||||||
|
|
||||||
migrationBuilder.RenameColumn(
|
|
||||||
name: "InstitutionId",
|
|
||||||
table: "Account",
|
|
||||||
newName: "InstituionId");
|
|
||||||
|
|
||||||
migrationBuilder.RenameIndex(
|
|
||||||
name: "IX_Account_InstitutionId",
|
|
||||||
table: "Account",
|
|
||||||
newName: "IX_Account_InstituionId");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_Account_Institution_InstituionId",
|
|
||||||
table: "Account",
|
|
||||||
column: "InstituionId",
|
|
||||||
principalTable: "Institution",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_Account_Institution_InstitutionId",
|
||||||
|
table: "Account");
|
||||||
|
|
||||||
|
migrationBuilder.RenameColumn(
|
||||||
|
name: "InstitutionId",
|
||||||
|
table: "Account",
|
||||||
|
newName: "InstituionId");
|
||||||
|
|
||||||
|
migrationBuilder.RenameIndex(
|
||||||
|
name: "IX_Account_InstitutionId",
|
||||||
|
table: "Account",
|
||||||
|
newName: "IX_Account_InstituionId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_Account_Institution_InstituionId",
|
||||||
|
table: "Account",
|
||||||
|
column: "InstituionId",
|
||||||
|
principalTable: "Institution",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+38
-37
@@ -1,49 +1,50 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddBalancesWithConnectionToAccounts : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AddBalancesWithConnectionToAccounts : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.CreateTable(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "Balance",
|
||||||
{
|
columns: table => new
|
||||||
migrationBuilder.CreateTable(
|
{
|
||||||
name: "Balance",
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
columns: table => new
|
AccountId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
{
|
Current = table.Column<decimal>(type: "TEXT", nullable: false),
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
Available = table.Column<decimal>(type: "TEXT", nullable: false),
|
||||||
AccountId = table.Column<Guid>(type: "TEXT", nullable: false),
|
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
||||||
Current = table.Column<decimal>(type: "TEXT", nullable: false),
|
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
||||||
Available = table.Column<decimal>(type: "TEXT", nullable: false),
|
},
|
||||||
CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
|
constraints: table =>
|
||||||
UpdatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
|
{
|
||||||
},
|
table.PrimaryKey("PK_Balance", x => x.Id);
|
||||||
constraints: table =>
|
table.ForeignKey(
|
||||||
{
|
name: "FK_Balance_Account_AccountId",
|
||||||
table.PrimaryKey("PK_Balance", x => x.Id);
|
column: x => x.AccountId,
|
||||||
table.ForeignKey(
|
principalTable: "Account",
|
||||||
name: "FK_Balance_Account_AccountId",
|
principalColumn: "Id",
|
||||||
column: x => x.AccountId,
|
onDelete: ReferentialAction.Cascade);
|
||||||
principalTable: "Account",
|
});
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Balance_AccountId",
|
name: "IX_Balance_AccountId",
|
||||||
table: "Balance",
|
table: "Balance",
|
||||||
column: "AccountId");
|
column: "AccountId");
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "Balance");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Balance");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,26 +4,26 @@
|
|||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddCurrencyCodeToBalanceModel : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AddCurrencyCodeToBalanceModel : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.AddColumn<string>(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "CurrencyCode",
|
||||||
{
|
table: "Balance",
|
||||||
migrationBuilder.AddColumn<string>(
|
type: "TEXT",
|
||||||
name: "CurrencyCode",
|
nullable: false,
|
||||||
table: "Balance",
|
defaultValue: "");
|
||||||
type: "TEXT",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: "");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "CurrencyCode",
|
|
||||||
table: "Balance");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CurrencyCode",
|
||||||
|
table: "Balance");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user