39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace LightlessSyncServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddBannerForProfiles : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "base64banner_image",
|
|
table: "user_profile_data",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "base64group_banner_image",
|
|
table: "group_profiles",
|
|
type: "text",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "base64banner_image",
|
|
table: "user_profile_data");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "base64group_banner_image",
|
|
table: "group_profiles");
|
|
}
|
|
}
|
|
}
|