update migrations
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using System;
|
using System;
|
||||||
using LightlessSyncShared.Data;
|
using LightlessSyncShared.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace LightlessSyncServer.Migrations
|
namespace LightlessSyncServer.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(LightlessDbContext))]
|
[DbContext(typeof(LightlessDbContext))]
|
||||||
[Migration("20250925225205_AddUserVanityFields")]
|
[Migration("20250926133055_AddUserVanity")]
|
||||||
partial class AddUserVanityFields
|
partial class AddUserVanity
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
@@ -688,7 +688,6 @@ namespace LightlessSyncServer.Migrations
|
|||||||
|
|
||||||
b.Property<bool>("HasVanity")
|
b.Property<bool>("HasVanity")
|
||||||
.HasColumnType("boolean")
|
.HasColumnType("boolean")
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("has_vanity");
|
.HasColumnName("has_vanity");
|
||||||
|
|
||||||
b.Property<bool>("IsAdmin")
|
b.Property<bool>("IsAdmin")
|
||||||
@@ -706,13 +705,11 @@ namespace LightlessSyncServer.Migrations
|
|||||||
b.Property<string>("TextColorHex")
|
b.Property<string>("TextColorHex")
|
||||||
.HasMaxLength(9)
|
.HasMaxLength(9)
|
||||||
.HasColumnType("character varying(9)")
|
.HasColumnType("character varying(9)")
|
||||||
.HasDefaultValue(string.Empty)
|
|
||||||
.HasColumnName("text_color_hex");
|
.HasColumnName("text_color_hex");
|
||||||
|
|
||||||
b.Property<string>("TextGlowColorHex")
|
b.Property<string>("TextGlowColorHex")
|
||||||
.HasMaxLength(9)
|
.HasMaxLength(9)
|
||||||
.HasColumnType("character varying(9)")
|
.HasColumnType("character varying(9)")
|
||||||
.HasDefaultValue(string.Empty)
|
|
||||||
.HasColumnName("text_glow_color_hex");
|
.HasColumnName("text_glow_color_hex");
|
||||||
|
|
||||||
b.Property<byte[]>("Timestamp")
|
b.Property<byte[]>("Timestamp")
|
||||||
@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
namespace LightlessSyncServer.Migrations
|
namespace LightlessSyncServer.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AddUserVanityFields : Migration
|
public partial class AddUserVanity : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
@@ -22,16 +22,14 @@ namespace LightlessSyncServer.Migrations
|
|||||||
table: "users",
|
table: "users",
|
||||||
type: "character varying(9)",
|
type: "character varying(9)",
|
||||||
maxLength: 9,
|
maxLength: 9,
|
||||||
nullable: true,
|
nullable: true);
|
||||||
defaultValue: "");
|
|
||||||
|
|
||||||
migrationBuilder.AddColumn<string>(
|
migrationBuilder.AddColumn<string>(
|
||||||
name: "text_glow_color_hex",
|
name: "text_glow_color_hex",
|
||||||
table: "users",
|
table: "users",
|
||||||
type: "character varying(9)",
|
type: "character varying(9)",
|
||||||
maxLength: 9,
|
maxLength: 9,
|
||||||
nullable: true,
|
nullable: true);
|
||||||
defaultValue: "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using System;
|
using System;
|
||||||
using LightlessSyncShared.Data;
|
using LightlessSyncShared.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -685,7 +685,6 @@ namespace LightlessSyncServer.Migrations
|
|||||||
|
|
||||||
b.Property<bool>("HasVanity")
|
b.Property<bool>("HasVanity")
|
||||||
.HasColumnType("boolean")
|
.HasColumnType("boolean")
|
||||||
.HasDefaultValue(false)
|
|
||||||
.HasColumnName("has_vanity");
|
.HasColumnName("has_vanity");
|
||||||
|
|
||||||
b.Property<bool>("IsAdmin")
|
b.Property<bool>("IsAdmin")
|
||||||
@@ -703,13 +702,11 @@ namespace LightlessSyncServer.Migrations
|
|||||||
b.Property<string>("TextColorHex")
|
b.Property<string>("TextColorHex")
|
||||||
.HasMaxLength(9)
|
.HasMaxLength(9)
|
||||||
.HasColumnType("character varying(9)")
|
.HasColumnType("character varying(9)")
|
||||||
.HasDefaultValue(string.Empty)
|
|
||||||
.HasColumnName("text_color_hex");
|
.HasColumnName("text_color_hex");
|
||||||
|
|
||||||
b.Property<string>("TextGlowColorHex")
|
b.Property<string>("TextGlowColorHex")
|
||||||
.HasMaxLength(9)
|
.HasMaxLength(9)
|
||||||
.HasColumnType("character varying(9)")
|
.HasColumnType("character varying(9)")
|
||||||
.HasDefaultValue(string.Empty)
|
|
||||||
.HasColumnName("text_glow_color_hex");
|
.HasColumnName("text_glow_color_hex");
|
||||||
|
|
||||||
b.Property<byte[]>("Timestamp")
|
b.Property<byte[]>("Timestamp")
|
||||||
|
|||||||
Reference in New Issue
Block a user