✨ Anonymous poll
This commit is contained in:
2141
DysonNetwork.Sphere/Migrations/20250907150520_AddPollAnonymousOrNot.Designer.cs
generated
Normal file
2141
DysonNetwork.Sphere/Migrations/20250907150520_AddPollAnonymousOrNot.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DysonNetwork.Sphere.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddPollAnonymousOrNot : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "is_anonymous",
|
||||
table: "polls",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "is_anonymous",
|
||||
table: "polls");
|
||||
}
|
||||
}
|
||||
}
|
@@ -395,6 +395,10 @@ namespace DysonNetwork.Sphere.Migrations
|
||||
.HasColumnType("timestamp with time zone")
|
||||
.HasColumnName("ended_at");
|
||||
|
||||
b.Property<bool>("IsAnonymous")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_anonymous");
|
||||
|
||||
b.Property<Guid>("PublisherId")
|
||||
.HasColumnType("uuid")
|
||||
.HasColumnName("publisher_id");
|
||||
|
Reference in New Issue
Block a user