Track sats consumed
This commit is contained in:
29
NostrStreamer/Migrations/20240221202747_TrackSatsConsumed.cs
Normal file
29
NostrStreamer/Migrations/20240221202747_TrackSatsConsumed.cs
Normal file
@ -0,0 +1,29 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user