switched to using api tokens instead of login credentials

This commit is contained in:
Fishandchips321 2026-02-23 13:27:52 +00:00
parent 86f273d12d
commit 226caf4c1e
13 changed files with 215 additions and 85 deletions

View file

@ -0,0 +1,39 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JellyGlassBackend.Migrations
{
/// <inheritdoc />
public partial class apiToken : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Password",
table: "Servers");
migrationBuilder.RenameColumn(
name: "Username",
table: "Servers",
newName: "ApiToken");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "ApiToken",
table: "Servers",
newName: "Username");
migrationBuilder.AddColumn<string>(
name: "Password",
table: "Servers",
type: "TEXT",
nullable: false,
defaultValue: "");
}
}
}