30 lines
785 B
C#
30 lines
785 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace NostrStreamer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class TrackSatsConsumed : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "MilliSatsCollected",
|
|
table: "Streams",
|
|
type: "numeric",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "MilliSatsCollected",
|
|
table: "Streams");
|
|
}
|
|
}
|
|
}
|