Skip to content

Commit

Permalink
Add migration to remove DisplayName column
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler committed Aug 16, 2024
1 parent 6c460a0 commit 5a28a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<long>("DiskUsed")
.HasColumnType("bigint");

b.Property<string>("DisplayName")
.IsRequired()
.HasColumnType("nvarchar(max)");

b.Property<DateTime?>("LastCheckedUtc")
.HasColumnType("datetime2");

Expand Down
4 changes: 3 additions & 1 deletion OrcanodeMonitor/Models/Orcanode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public Orcanode()
#region persisted
// Persisted fields. If any changes are made, the database must go through a migration.
// See https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=vs
// for more information.
// for more information. For example, if adding a field called FooBar, then
// from Package Manager Console do:
// * Add-Migration AddFooBar

/// <summary>
/// Database key field. This is NOT the dataplicity serial GUID, since a node might first be
Expand Down

0 comments on commit 5a28a9e

Please sign in to comment.