Reverted all v5 migrations back to v4

This commit is contained in:
Kwoth
2024-05-02 23:29:56 +00:00
parent 48e51784da
commit 4fc0cded15
152 changed files with 184332 additions and 48279 deletions

View File

@@ -4,17 +4,16 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using NadekoBot.Db;
using NadekoBot.Services.Database;
#nullable disable
namespace NadekoBot.Db.Migrations.Mysql
namespace NadekoBot.Migrations.Mysql
{
[DbContext(typeof(MysqlContext))]
[Migration("20221122204432_feed-text")]
partial class init_v5
partial class feedtext
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
@@ -1024,6 +1023,34 @@ namespace NadekoBot.Db.Migrations.Mysql
b.ToTable("filterchannelid", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<DateTime?>("DateAdded")
.HasColumnType("datetime(6)")
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
.HasColumnType("int")
.HasColumnName("guildconfigid");
b.Property<string>("Word")
.HasColumnType("longtext")
.HasColumnName("word");
b.HasKey("Id")
.HasName("pk_filteredword");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_filteredword_guildconfigid");
b.ToTable("filteredword", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterLinksChannelId", b =>
{
b.Property<int>("Id")
@@ -1080,62 +1107,6 @@ namespace NadekoBot.Db.Migrations.Mysql
b.ToTable("filterwordschannelid", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<DateTime?>("DateAdded")
.HasColumnType("datetime(6)")
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
.HasColumnType("int")
.HasColumnName("guildconfigid");
b.Property<string>("Word")
.HasColumnType("longtext")
.HasColumnName("word");
b.HasKey("Id")
.HasName("pk_filteredword");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_filteredword_guildconfigid");
b.ToTable("filteredword", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<ulong>("ChannelId")
.HasColumnType("bigint unsigned")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("datetime(6)")
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
.HasColumnType("int")
.HasColumnName("guildconfigid");
b.HasKey("Id")
.HasName("pk_gcchannelid");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_gcchannelid_guildconfigid");
b.ToTable("gcchannelid", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.GamblingStats", b =>
{
b.Property<int>("Id")
@@ -1169,6 +1140,34 @@ namespace NadekoBot.Db.Migrations.Mysql
b.ToTable("gamblingstats", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<ulong>("ChannelId")
.HasColumnType("bigint unsigned")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("datetime(6)")
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
.HasColumnType("int")
.HasColumnName("guildconfigid");
b.HasKey("Id")
.HasName("pk_gcchannelid");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_gcchannelid_guildconfigid");
b.ToTable("gcchannelid", (string)null);
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.GroupName", b =>
{
b.Property<int>("Id")
@@ -3200,6 +3199,14 @@ namespace NadekoBot.Db.Migrations.Mysql
.HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid");
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
{
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filteredword_guildconfigs_guildconfigid");
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterLinksChannelId", b =>
{
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", null)
@@ -3216,14 +3223,6 @@ namespace NadekoBot.Db.Migrations.Mysql
.HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid");
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
{
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", null)
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filteredword_guildconfigs_guildconfigid");
});
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
{
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig")