41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DysonNetwork.Pass.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class OpenableFunds : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "is_open",
|
|
table: "wallet_funds",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "remaining_amount",
|
|
table: "wallet_funds",
|
|
type: "numeric",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "is_open",
|
|
table: "wallet_funds");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "remaining_amount",
|
|
table: "wallet_funds");
|
|
}
|
|
}
|
|
}
|