Skip to content

Commit

Permalink
fix: device code migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 8, 2022
1 parent af28bab commit 0e2fdb0
Show file tree
Hide file tree
Showing 14 changed files with 1,761 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Aguacongas.TheIdServer.MySql.Migrations.OperationalDb
{
public partial class DeviceCodeDescrotion : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Description",
table: "DeviceCodes",
type: "varchar(200)",
maxLength: 200,
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");

migrationBuilder.AddColumn<string>(
name: "SessionId",
table: "DeviceCodes",
type: "varchar(100)",
maxLength: 100,
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Description",
table: "DeviceCodes");

migrationBuilder.DropColumn(
name: "SessionId",
table: "DeviceCodes");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.1")
.HasAnnotation("ProductVersion", "6.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64);

modelBuilder.Entity("Aguacongas.IdentityServer.KeysRotation.EntityFrameworkCore.KeyRotationKey", b =>
Expand Down Expand Up @@ -122,12 +122,20 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<string>("Data")
.HasColumnType("longtext");
b.Property<string>("Description")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<DateTime>("Expiration")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("ModifiedAt")
.HasColumnType("datetime(6)");
b.Property<string>("SessionId")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property<string>("SubjectId")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
Expand Down
Loading

0 comments on commit 0e2fdb0

Please sign in to comment.