mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 04:57:17 +01:00
Normalize SQLite Model
This commit is contained in:
Generated
+1038
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Tgstation.Server.Host.Database.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SLNormalizeSqlite : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+46
-82
@@ -4,7 +4,7 @@ using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
||||
namespace Tgstation.Server.Host.Database
|
||||
namespace Tgstation.Server.Host.Database.Migrations
|
||||
{
|
||||
[DbContext(typeof(SqliteDatabaseContext))]
|
||||
partial class SqliteDatabaseContextModelSnapshot : ModelSnapshot
|
||||
@@ -12,16 +12,15 @@ namespace Tgstation.Server.Host.Database
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.0");
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<ushort?>("ChannelLimit")
|
||||
.IsRequired()
|
||||
b.Property<ushort>("ChannelLimit")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("ConnectionString")
|
||||
@@ -43,8 +42,7 @@ namespace Tgstation.Server.Host.Database
|
||||
b.Property<int>("Provider")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("ReconnectionInterval")
|
||||
.IsRequired()
|
||||
b.Property<uint>("ReconnectionInterval")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -71,20 +69,16 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("IsAdminChannel")
|
||||
.IsRequired()
|
||||
b.Property<bool>("IsAdminChannel")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("IsSystemChannel")
|
||||
.IsRequired()
|
||||
b.Property<bool>("IsSystemChannel")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("IsUpdatesChannel")
|
||||
.IsRequired()
|
||||
b.Property<bool>("IsUpdatesChannel")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("IsWatchdogChannel")
|
||||
.IsRequired()
|
||||
b.Property<bool>("IsWatchdogChannel")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Tag")
|
||||
@@ -104,7 +98,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -117,8 +111,7 @@ namespace Tgstation.Server.Host.Database
|
||||
b.Property<int?>("DMApiPatchVersion")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid?>("DirectoryName")
|
||||
.IsRequired()
|
||||
b.Property<Guid>("DirectoryName")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("DmeName")
|
||||
@@ -174,58 +167,46 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(10000)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("AllowWebClient")
|
||||
.IsRequired()
|
||||
b.Property<bool>("AllowWebClient")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("AutoStart")
|
||||
.IsRequired()
|
||||
b.Property<bool>("AutoStart")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("DumpOnHealthCheckRestart")
|
||||
.IsRequired()
|
||||
b.Property<bool>("DumpOnHealthCheckRestart")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("HealthCheckSeconds")
|
||||
.IsRequired()
|
||||
b.Property<uint>("HealthCheckSeconds")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long>("InstanceId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("LogOutput")
|
||||
.IsRequired()
|
||||
b.Property<bool>("LogOutput")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("MapThreads")
|
||||
.IsRequired()
|
||||
b.Property<uint>("MapThreads")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("Minidumps")
|
||||
.IsRequired()
|
||||
b.Property<bool>("Minidumps")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<ushort?>("OpenDreamTopicPort")
|
||||
.IsRequired()
|
||||
b.Property<ushort>("OpenDreamTopicPort")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<ushort?>("Port")
|
||||
.IsRequired()
|
||||
b.Property<ushort>("Port")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("SecurityLevel")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("StartProfiler")
|
||||
.IsRequired()
|
||||
b.Property<bool>("StartProfiler")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("StartupTimeout")
|
||||
.IsRequired()
|
||||
b.Property<uint>("StartupTimeout")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("TopicRequestTimeout")
|
||||
.IsRequired()
|
||||
b.Property<uint>("TopicRequestTimeout")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Visibility")
|
||||
@@ -245,8 +226,7 @@ namespace Tgstation.Server.Host.Database
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<ushort?>("ApiValidationPort")
|
||||
.IsRequired()
|
||||
b.Property<ushort>("ApiValidationPort")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("ApiValidationSecurityLevel")
|
||||
@@ -266,8 +246,7 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(10000)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<TimeSpan?>("Timeout")
|
||||
.IsRequired()
|
||||
b.Property<TimeSpan>("Timeout")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -280,7 +259,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -299,12 +278,10 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<uint?>("AutoUpdateInterval")
|
||||
.IsRequired()
|
||||
b.Property<uint>("AutoUpdateInterval")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<ushort?>("ChatBotLimit")
|
||||
.IsRequired()
|
||||
b.Property<ushort>("ChatBotLimit")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("ConfigurationType")
|
||||
@@ -315,8 +292,7 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("Online")
|
||||
.IsRequired()
|
||||
b.Property<bool>("Online")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Path")
|
||||
@@ -379,7 +355,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -389,8 +365,7 @@ namespace Tgstation.Server.Host.Database
|
||||
b.Property<ulong?>("CancelRightsType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("Cancelled")
|
||||
.IsRequired()
|
||||
b.Property<bool>("Cancelled")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long?>("CancelledById")
|
||||
@@ -412,8 +387,7 @@ namespace Tgstation.Server.Host.Database
|
||||
b.Property<byte>("JobCode")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTimeOffset?>("StartedAt")
|
||||
.IsRequired()
|
||||
b.Property<DateTimeOffset>("StartedAt")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<long>("StartedById")
|
||||
@@ -462,7 +436,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -491,7 +465,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -546,12 +520,10 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(10000)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("AutoUpdatesKeepTestMerges")
|
||||
.IsRequired()
|
||||
b.Property<bool>("AutoUpdatesKeepTestMerges")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("AutoUpdatesSynchronize")
|
||||
.IsRequired()
|
||||
b.Property<bool>("AutoUpdatesSynchronize")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("CommitterEmail")
|
||||
@@ -564,27 +536,22 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(10000)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("CreateGitHubDeployments")
|
||||
.IsRequired()
|
||||
b.Property<bool>("CreateGitHubDeployments")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long>("InstanceId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("PostTestMergeComment")
|
||||
.IsRequired()
|
||||
b.Property<bool>("PostTestMergeComment")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("PushTestMergeCommits")
|
||||
.IsRequired()
|
||||
b.Property<bool>("PushTestMergeCommits")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("ShowTestMergeCommitters")
|
||||
.IsRequired()
|
||||
b.Property<bool>("ShowTestMergeCommitters")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("UpdateSubmodules")
|
||||
.IsRequired()
|
||||
b.Property<bool>("UpdateSubmodules")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -673,8 +640,7 @@ namespace Tgstation.Server.Host.Database
|
||||
b.Property<int>("Number")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long?>("PrimaryRevisionInformationId")
|
||||
.IsRequired()
|
||||
b.Property<long>("PrimaryRevisionInformationId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("TargetCommitSha")
|
||||
@@ -702,7 +668,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -711,15 +677,13 @@ namespace Tgstation.Server.Host.Database
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTimeOffset?>("CreatedAt")
|
||||
.IsRequired()
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<long?>("CreatedById")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("Enabled")
|
||||
.IsRequired()
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long?>("GroupId")
|
||||
@@ -757,7 +721,7 @@ namespace Tgstation.Server.Host.Database
|
||||
|
||||
modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
|
||||
{
|
||||
b.Property<long?>("Id")
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user