38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Foxnouns.Backend.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddAvatarMigrations : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "avatar_migrated",
|
|
table: "users",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false
|
|
);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "avatar_migrated",
|
|
table: "members",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false
|
|
);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(name: "avatar_migrated", table: "users");
|
|
|
|
migrationBuilder.DropColumn(name: "avatar_migrated", table: "members");
|
|
}
|
|
}
|
|
}
|