39 lines
1 KiB
C#
39 lines
1 KiB
C#
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: "");
|
|
}
|
|
}
|
|
}
|