From 0b01b32dc2e231b14fdfc2ed3315209cfad58b21 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 15 Mar 2025 12:10:59 -0400 Subject: [PATCH] Undo SQLite model changes --- .../SqliteDatabaseContextModelSnapshot.cs | 128 +++++++++++------- 1 file changed, 82 insertions(+), 46 deletions(-) diff --git a/src/Tgstation.Server.Host/Database/Migrations/SqliteDatabaseContextModelSnapshot.cs b/src/Tgstation.Server.Host/Database/Migrations/SqliteDatabaseContextModelSnapshot.cs index c5949a7c34..3de5ce1013 100644 --- a/src/Tgstation.Server.Host/Database/Migrations/SqliteDatabaseContextModelSnapshot.cs +++ b/src/Tgstation.Server.Host/Database/Migrations/SqliteDatabaseContextModelSnapshot.cs @@ -4,7 +4,7 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -namespace Tgstation.Server.Host.Database.Migrations +namespace Tgstation.Server.Host.Database { [DbContext(typeof(SqliteDatabaseContext))] partial class SqliteDatabaseContextModelSnapshot : ModelSnapshot @@ -12,15 +12,16 @@ namespace Tgstation.Server.Host.Database.Migrations protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder.HasAnnotation("ProductVersion", "9.0.0"); + modelBuilder.HasAnnotation("ProductVersion", "8.0.10"); modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); - b.Property("ChannelLimit") + b.Property("ChannelLimit") + .IsRequired() .HasColumnType("INTEGER"); b.Property("ConnectionString") @@ -42,7 +43,8 @@ namespace Tgstation.Server.Host.Database.Migrations b.Property("Provider") .HasColumnType("INTEGER"); - b.Property("ReconnectionInterval") + b.Property("ReconnectionInterval") + .IsRequired() .HasColumnType("INTEGER"); b.HasKey("Id"); @@ -69,16 +71,20 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(100) .HasColumnType("TEXT"); - b.Property("IsAdminChannel") + b.Property("IsAdminChannel") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("IsSystemChannel") + b.Property("IsSystemChannel") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("IsUpdatesChannel") + b.Property("IsUpdatesChannel") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("IsWatchdogChannel") + b.Property("IsWatchdogChannel") + .IsRequired() .HasColumnType("INTEGER"); b.Property("Tag") @@ -98,7 +104,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -111,7 +117,8 @@ namespace Tgstation.Server.Host.Database.Migrations b.Property("DMApiPatchVersion") .HasColumnType("INTEGER"); - b.Property("DirectoryName") + b.Property("DirectoryName") + .IsRequired() .HasColumnType("TEXT"); b.Property("DmeName") @@ -167,46 +174,58 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(10000) .HasColumnType("TEXT"); - b.Property("AllowWebClient") + b.Property("AllowWebClient") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("AutoStart") + b.Property("AutoStart") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("DumpOnHealthCheckRestart") + b.Property("DumpOnHealthCheckRestart") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("HealthCheckSeconds") + b.Property("HealthCheckSeconds") + .IsRequired() .HasColumnType("INTEGER"); b.Property("InstanceId") .HasColumnType("INTEGER"); - b.Property("LogOutput") + b.Property("LogOutput") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("MapThreads") + b.Property("MapThreads") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("Minidumps") + b.Property("Minidumps") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("OpenDreamTopicPort") + b.Property("OpenDreamTopicPort") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("Port") + b.Property("Port") + .IsRequired() .HasColumnType("INTEGER"); b.Property("SecurityLevel") .HasColumnType("INTEGER"); - b.Property("StartProfiler") + b.Property("StartProfiler") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("StartupTimeout") + b.Property("StartupTimeout") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("TopicRequestTimeout") + b.Property("TopicRequestTimeout") + .IsRequired() .HasColumnType("INTEGER"); b.Property("Visibility") @@ -226,7 +245,8 @@ namespace Tgstation.Server.Host.Database.Migrations .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); - b.Property("ApiValidationPort") + b.Property("ApiValidationPort") + .IsRequired() .HasColumnType("INTEGER"); b.Property("ApiValidationSecurityLevel") @@ -246,7 +266,8 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(10000) .HasColumnType("TEXT"); - b.Property("Timeout") + b.Property("Timeout") + .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); @@ -259,7 +280,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -278,10 +299,12 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(1000) .HasColumnType("TEXT"); - b.Property("AutoUpdateInterval") + b.Property("AutoUpdateInterval") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("ChatBotLimit") + b.Property("ChatBotLimit") + .IsRequired() .HasColumnType("INTEGER"); b.Property("ConfigurationType") @@ -292,7 +315,8 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(100) .HasColumnType("TEXT"); - b.Property("Online") + b.Property("Online") + .IsRequired() .HasColumnType("INTEGER"); b.Property("Path") @@ -355,7 +379,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -365,7 +389,8 @@ namespace Tgstation.Server.Host.Database.Migrations b.Property("CancelRightsType") .HasColumnType("INTEGER"); - b.Property("Cancelled") + b.Property("Cancelled") + .IsRequired() .HasColumnType("INTEGER"); b.Property("CancelledById") @@ -387,7 +412,8 @@ namespace Tgstation.Server.Host.Database.Migrations b.Property("JobCode") .HasColumnType("INTEGER"); - b.Property("StartedAt") + b.Property("StartedAt") + .IsRequired() .HasColumnType("TEXT"); b.Property("StartedById") @@ -436,7 +462,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -465,7 +491,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -520,10 +546,12 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(10000) .HasColumnType("TEXT"); - b.Property("AutoUpdatesKeepTestMerges") + b.Property("AutoUpdatesKeepTestMerges") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("AutoUpdatesSynchronize") + b.Property("AutoUpdatesSynchronize") + .IsRequired() .HasColumnType("INTEGER"); b.Property("CommitterEmail") @@ -536,22 +564,27 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(10000) .HasColumnType("TEXT"); - b.Property("CreateGitHubDeployments") + b.Property("CreateGitHubDeployments") + .IsRequired() .HasColumnType("INTEGER"); b.Property("InstanceId") .HasColumnType("INTEGER"); - b.Property("PostTestMergeComment") + b.Property("PostTestMergeComment") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("PushTestMergeCommits") + b.Property("PushTestMergeCommits") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("ShowTestMergeCommitters") + b.Property("ShowTestMergeCommitters") + .IsRequired() .HasColumnType("INTEGER"); - b.Property("UpdateSubmodules") + b.Property("UpdateSubmodules") + .IsRequired() .HasColumnType("INTEGER"); b.HasKey("Id"); @@ -640,7 +673,8 @@ namespace Tgstation.Server.Host.Database.Migrations b.Property("Number") .HasColumnType("INTEGER"); - b.Property("PrimaryRevisionInformationId") + b.Property("PrimaryRevisionInformationId") + .IsRequired() .HasColumnType("INTEGER"); b.Property("TargetCommitSha") @@ -668,7 +702,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.User", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -677,13 +711,15 @@ namespace Tgstation.Server.Host.Database.Migrations .HasMaxLength(100) .HasColumnType("TEXT"); - b.Property("CreatedAt") + b.Property("CreatedAt") + .IsRequired() .HasColumnType("TEXT"); b.Property("CreatedById") .HasColumnType("INTEGER"); - b.Property("Enabled") + b.Property("Enabled") + .IsRequired() .HasColumnType("INTEGER"); b.Property("GroupId") @@ -721,7 +757,7 @@ namespace Tgstation.Server.Host.Database.Migrations modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER");