40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BeReadyBackend.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddedMissingFieldsOnGroup : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "StartedVote",
|
|
table: "Groups",
|
|
type: "datetime2",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "VoteDuration",
|
|
table: "Groups",
|
|
type: "int",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "StartedVote",
|
|
table: "Groups");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VoteDuration",
|
|
table: "Groups");
|
|
}
|
|
}
|
|
}
|