update migrations

This commit is contained in:
azyges
2025-09-26 22:36:51 +09:00
parent 48cf492fa1
commit b9abdcfff7
3 changed files with 7 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
// <auto-generated />
// <auto-generated />
using System;
using LightlessSyncShared.Data;
using Microsoft.EntityFrameworkCore;
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace LightlessSyncServer.Migrations
{
[DbContext(typeof(LightlessDbContext))]
[Migration("20250925225205_AddUserVanityFields")]
partial class AddUserVanityFields
[Migration("20250926133055_AddUserVanity")]
partial class AddUserVanity
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -688,7 +688,6 @@ namespace LightlessSyncServer.Migrations
b.Property<bool>("HasVanity")
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("has_vanity");
b.Property<bool>("IsAdmin")
@@ -706,13 +705,11 @@ namespace LightlessSyncServer.Migrations
b.Property<string>("TextColorHex")
.HasMaxLength(9)
.HasColumnType("character varying(9)")
.HasDefaultValue(string.Empty)
.HasColumnName("text_color_hex");
b.Property<string>("TextGlowColorHex")
.HasMaxLength(9)
.HasColumnType("character varying(9)")
.HasDefaultValue(string.Empty)
.HasColumnName("text_glow_color_hex");
b.Property<byte[]>("Timestamp")

View File

@@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace LightlessSyncServer.Migrations
{
/// <inheritdoc />
public partial class AddUserVanityFields : Migration
public partial class AddUserVanity : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@@ -22,16 +22,14 @@ namespace LightlessSyncServer.Migrations
table: "users",
type: "character varying(9)",
maxLength: 9,
nullable: true,
defaultValue: "");
nullable: true);
migrationBuilder.AddColumn<string>(
name: "text_glow_color_hex",
table: "users",
type: "character varying(9)",
maxLength: 9,
nullable: true,
defaultValue: "");
nullable: true);
}
/// <inheritdoc />

View File

@@ -1,4 +1,4 @@
// <auto-generated />
// <auto-generated />
using System;
using LightlessSyncShared.Data;
using Microsoft.EntityFrameworkCore;
@@ -685,7 +685,6 @@ namespace LightlessSyncServer.Migrations
b.Property<bool>("HasVanity")
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("has_vanity");
b.Property<bool>("IsAdmin")
@@ -703,13 +702,11 @@ namespace LightlessSyncServer.Migrations
b.Property<string>("TextColorHex")
.HasMaxLength(9)
.HasColumnType("character varying(9)")
.HasDefaultValue(string.Empty)
.HasColumnName("text_color_hex");
b.Property<string>("TextGlowColorHex")
.HasMaxLength(9)
.HasColumnType("character varying(9)")
.HasDefaultValue(string.Empty)
.HasColumnName("text_glow_color_hex");
b.Property<byte[]>("Timestamp")