remove nullability
This commit is contained in:
@@ -686,7 +686,7 @@ namespace LightlessSyncServer.Migrations
|
||||
.HasColumnType("character varying(15)")
|
||||
.HasColumnName("alias");
|
||||
|
||||
b.Property<bool?>("HasVanity")
|
||||
b.Property<bool>("HasVanity")
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false)
|
||||
.HasColumnName("has_vanity");
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace LightlessSyncServer.Migrations
|
||||
name: "has_vanity",
|
||||
table: "users",
|
||||
type: "boolean",
|
||||
nullable: true,
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
|
||||
@@ -683,7 +683,7 @@ namespace LightlessSyncServer.Migrations
|
||||
.HasColumnType("character varying(15)")
|
||||
.HasColumnName("alias");
|
||||
|
||||
b.Property<bool?>("HasVanity")
|
||||
b.Property<bool>("HasVanity")
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false)
|
||||
.HasColumnName("has_vanity");
|
||||
|
||||
@@ -14,7 +14,7 @@ public class User
|
||||
|
||||
public bool IsAdmin { get; set; } = false;
|
||||
|
||||
public bool? HasVanity { get; set; } = false;
|
||||
public bool HasVanity { get; set; } = false;
|
||||
|
||||
[MaxLength(9)]
|
||||
public string? TextColorHex { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user