Files
OemanTrader/OemanTrader.EntityFramework/Migrations/20220519211347_stock-to-asset.cs
2022-05-26 15:19:31 +02:00

36 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace OemanTrader.EntityFramework.Migrations
{
public partial class stocktoasset : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Stock_Symbol",
table: "AssetTransactions",
newName: "Asset_Symbol");
migrationBuilder.RenameColumn(
name: "Stock_PricePerShare",
table: "AssetTransactions",
newName: "Asset_PricePerShare");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Asset_Symbol",
table: "AssetTransactions",
newName: "Stock_Symbol");
migrationBuilder.RenameColumn(
name: "Asset_PricePerShare",
table: "AssetTransactions",
newName: "Stock_PricePerShare");
}
}
}