mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-18 12:33:20 -05:00
28 lines
560 B
C#
28 lines
560 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Kyoo.Postgresql.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class Settings : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "settings",
|
|
table: "users",
|
|
type: "json",
|
|
nullable: false,
|
|
defaultValue: "{}"
|
|
);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(name: "settings", table: "users");
|
|
}
|
|
}
|