* some groups stuff * further groups rework * fixes for pause changes * adjsut timeout interval * fixes and namespace change to file scoped * more fixes * further implement groups * fix change group ownership * add some more stuff for groups * more fixes and additions * some fixes based on analyzers, add shard info to ui * add discord command, cleanup * fix regex * add group migration and deletion on user deletion * add api method for client to check health of connection * adjust regex for vanity * fixes for server and bot * fixes some string comparison in linq queries * fixes group leave and sets alias to null * fix syntax in changeownership * add better logging, fixes for group leaving * fixes for group leave Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MareSynchronosServer.Migrations
|
|
{
|
|
public partial class AddLodestoneAuth : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "lodestone_auth",
|
|
columns: table => new
|
|
{
|
|
discord_id = table.Column<decimal>(type: "numeric(20,0)", nullable: false),
|
|
hashed_lodestone_id = table.Column<string>(type: "text", nullable: true),
|
|
lodestone_auth_string = table.Column<string>(type: "text", nullable: true),
|
|
user_uid = table.Column<string>(type: "character varying(10)", nullable: true),
|
|
started_at = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("pk_lodestone_auth", x => x.discord_id);
|
|
table.ForeignKey(
|
|
name: "fk_lodestone_auth_users_user_uid",
|
|
column: x => x.user_uid,
|
|
principalTable: "users",
|
|
principalColumn: "uid");
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "ix_lodestone_auth_user_uid",
|
|
table: "lodestone_auth",
|
|
column: "user_uid");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "lodestone_auth");
|
|
}
|
|
}
|
|
}
|