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