Updated Db migrations
I want to scream
This commit is contained in:
parent
766e3d0ddd
commit
24005a6723
10 changed files with 11285 additions and 6402 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,22 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace EllieBot.Migrations.Mysql
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class InitialCreate : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,10 +1,10 @@
|
||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using System;
|
using System;
|
||||||
|
using EllieBot.Db;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using EllieBot.Db;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -803,6 +803,57 @@ namespace EllieBot.Migrations.Mysql
|
||||||
b.ToTable("discorduser", (string)null);
|
b.ToTable("discorduser", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasColumnName("id");
|
||||||
|
|
||||||
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<bool>("AllowTarget")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("allowtarget");
|
||||||
|
|
||||||
|
b.Property<bool>("AutoDeleteTrigger")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("autodeletetrigger");
|
||||||
|
|
||||||
|
b.Property<bool>("ContainsAnywhere")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("containsanywhere");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DateAdded")
|
||||||
|
.HasColumnType("datetime(6)")
|
||||||
|
.HasColumnName("dateadded");
|
||||||
|
|
||||||
|
b.Property<bool>("DmResponse")
|
||||||
|
.HasColumnType("tinyint(1)")
|
||||||
|
.HasColumnName("dmresponse");
|
||||||
|
|
||||||
|
b.Property<ulong?>("GuildId")
|
||||||
|
.HasColumnType("bigint unsigned")
|
||||||
|
.HasColumnName("guildid");
|
||||||
|
|
||||||
|
b.Property<string>("Reactions")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasColumnName("reactions");
|
||||||
|
|
||||||
|
b.Property<string>("Response")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasColumnName("response");
|
||||||
|
|
||||||
|
b.Property<string>("Trigger")
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasColumnName("trigger");
|
||||||
|
|
||||||
|
b.HasKey("Id")
|
||||||
|
.HasName("pk_expressions");
|
||||||
|
|
||||||
|
b.ToTable("expressions", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
@ -1667,57 +1718,6 @@ namespace EllieBot.Migrations.Mysql
|
||||||
b.ToTable("muteduserid", (string)null);
|
b.ToTable("muteduserid", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("int")
|
|
||||||
.HasColumnName("id");
|
|
||||||
|
|
||||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
||||||
|
|
||||||
b.Property<bool>("AllowTarget")
|
|
||||||
.HasColumnType("tinyint(1)")
|
|
||||||
.HasColumnName("allowtarget");
|
|
||||||
|
|
||||||
b.Property<bool>("AutoDeleteTrigger")
|
|
||||||
.HasColumnType("tinyint(1)")
|
|
||||||
.HasColumnName("autodeletetrigger");
|
|
||||||
|
|
||||||
b.Property<bool>("ContainsAnywhere")
|
|
||||||
.HasColumnType("tinyint(1)")
|
|
||||||
.HasColumnName("containsanywhere");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DateAdded")
|
|
||||||
.HasColumnType("datetime(6)")
|
|
||||||
.HasColumnName("dateadded");
|
|
||||||
|
|
||||||
b.Property<bool>("DmResponse")
|
|
||||||
.HasColumnType("tinyint(1)")
|
|
||||||
.HasColumnName("dmresponse");
|
|
||||||
|
|
||||||
b.Property<ulong?>("GuildId")
|
|
||||||
.HasColumnType("bigint unsigned")
|
|
||||||
.HasColumnName("guildid");
|
|
||||||
|
|
||||||
b.Property<string>("Reactions")
|
|
||||||
.HasColumnType("longtext")
|
|
||||||
.HasColumnName("reactions");
|
|
||||||
|
|
||||||
b.Property<string>("Response")
|
|
||||||
.HasColumnType("longtext")
|
|
||||||
.HasColumnName("response");
|
|
||||||
|
|
||||||
b.Property<string>("Trigger")
|
|
||||||
.HasColumnType("longtext")
|
|
||||||
.HasColumnName("trigger");
|
|
||||||
|
|
||||||
b.HasKey("Id")
|
|
||||||
.HasName("pk_expressions");
|
|
||||||
|
|
||||||
b.ToTable("expressions", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
||||||
{
|
{
|
||||||
b.Property<ulong>("UserId")
|
b.Property<ulong>("UserId")
|
||||||
|
|
3816
src/EllieBot/Migrations/PostgreSql/20240619051724_InitialCreate.Designer.cs
generated
Normal file
3816
src/EllieBot/Migrations/PostgreSql/20240619051724_InitialCreate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,22 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace EllieBot.Migrations.PostgreSql
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class InitialCreate : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using System;
|
using System;
|
||||||
|
using EllieBot.Db;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using EllieBot.Db;
|
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace EllieBot.Migrations.PostgreSql;
|
namespace EllieBot.Migrations.PostgreSql
|
||||||
|
{
|
||||||
[DbContext(typeof(PostgreSqlContext))]
|
[DbContext(typeof(PostgreSqlContext))]
|
||||||
partial class PostgreSqlContextModelSnapshot : ModelSnapshot
|
partial class PostgreSqlContextModelSnapshot : ModelSnapshot
|
||||||
{
|
{
|
||||||
|
@ -802,6 +802,57 @@ partial class PostgreSqlContextModelSnapshot : ModelSnapshot
|
||||||
b.ToTable("discorduser", (string)null);
|
b.ToTable("discorduser", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("integer")
|
||||||
|
.HasColumnName("id");
|
||||||
|
|
||||||
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
|
b.Property<bool>("AllowTarget")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("allowtarget");
|
||||||
|
|
||||||
|
b.Property<bool>("AutoDeleteTrigger")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("autodeletetrigger");
|
||||||
|
|
||||||
|
b.Property<bool>("ContainsAnywhere")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("containsanywhere");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DateAdded")
|
||||||
|
.HasColumnType("timestamp without time zone")
|
||||||
|
.HasColumnName("dateadded");
|
||||||
|
|
||||||
|
b.Property<bool>("DmResponse")
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasColumnName("dmresponse");
|
||||||
|
|
||||||
|
b.Property<decimal?>("GuildId")
|
||||||
|
.HasColumnType("numeric(20,0)")
|
||||||
|
.HasColumnName("guildid");
|
||||||
|
|
||||||
|
b.Property<string>("Reactions")
|
||||||
|
.HasColumnType("text")
|
||||||
|
.HasColumnName("reactions");
|
||||||
|
|
||||||
|
b.Property<string>("Response")
|
||||||
|
.HasColumnType("text")
|
||||||
|
.HasColumnName("response");
|
||||||
|
|
||||||
|
b.Property<string>("Trigger")
|
||||||
|
.HasColumnType("text")
|
||||||
|
.HasColumnName("trigger");
|
||||||
|
|
||||||
|
b.HasKey("Id")
|
||||||
|
.HasName("pk_expressions");
|
||||||
|
|
||||||
|
b.ToTable("expressions", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
@ -1666,57 +1717,6 @@ partial class PostgreSqlContextModelSnapshot : ModelSnapshot
|
||||||
b.ToTable("muteduserid", (string)null);
|
b.ToTable("muteduserid", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("integer")
|
|
||||||
.HasColumnName("id");
|
|
||||||
|
|
||||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
||||||
|
|
||||||
b.Property<bool>("AllowTarget")
|
|
||||||
.HasColumnType("boolean")
|
|
||||||
.HasColumnName("allowtarget");
|
|
||||||
|
|
||||||
b.Property<bool>("AutoDeleteTrigger")
|
|
||||||
.HasColumnType("boolean")
|
|
||||||
.HasColumnName("autodeletetrigger");
|
|
||||||
|
|
||||||
b.Property<bool>("ContainsAnywhere")
|
|
||||||
.HasColumnType("boolean")
|
|
||||||
.HasColumnName("containsanywhere");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DateAdded")
|
|
||||||
.HasColumnType("timestamp without time zone")
|
|
||||||
.HasColumnName("dateadded");
|
|
||||||
|
|
||||||
b.Property<bool>("DmResponse")
|
|
||||||
.HasColumnType("boolean")
|
|
||||||
.HasColumnName("dmresponse");
|
|
||||||
|
|
||||||
b.Property<decimal?>("GuildId")
|
|
||||||
.HasColumnType("numeric(20,0)")
|
|
||||||
.HasColumnName("guildid");
|
|
||||||
|
|
||||||
b.Property<string>("Reactions")
|
|
||||||
.HasColumnType("text")
|
|
||||||
.HasColumnName("reactions");
|
|
||||||
|
|
||||||
b.Property<string>("Response")
|
|
||||||
.HasColumnType("text")
|
|
||||||
.HasColumnName("response");
|
|
||||||
|
|
||||||
b.Property<string>("Trigger")
|
|
||||||
.HasColumnType("text")
|
|
||||||
.HasColumnName("trigger");
|
|
||||||
|
|
||||||
b.HasKey("Id")
|
|
||||||
.HasName("pk_expressions");
|
|
||||||
|
|
||||||
b.ToTable("expressions", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
||||||
{
|
{
|
||||||
b.Property<decimal>("UserId")
|
b.Property<decimal>("UserId")
|
||||||
|
@ -3810,3 +3810,4 @@ partial class PostgreSqlContextModelSnapshot : ModelSnapshot
|
||||||
#pragma warning restore 612, 618
|
#pragma warning restore 612, 618
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
2948
src/EllieBot/Migrations/Sqlite/20240619051129_InitialCreate.Designer.cs
generated
Normal file
2948
src/EllieBot/Migrations/Sqlite/20240619051129_InitialCreate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,22 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace EllieBot.Sqlite
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class InitialCreate : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using System;
|
using System;
|
||||||
|
using EllieBot.Db;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using EllieBot.Db;
|
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
@ -599,6 +599,44 @@ namespace EllieBot.Migrations
|
||||||
b.ToTable("DiscordUser");
|
b.ToTable("DiscordUser");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("AllowTarget")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("AutoDeleteTrigger")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("ContainsAnywhere")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DateAdded")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("DmResponse")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<ulong?>("GuildId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Reactions")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Response")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Trigger")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Expressions");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
@ -1241,44 +1279,6 @@ namespace EllieBot.Migrations
|
||||||
b.ToTable("MutedUserId");
|
b.ToTable("MutedUserId");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.EllieExpression", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<bool>("AllowTarget")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<bool>("AutoDeleteTrigger")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<bool>("ContainsAnywhere")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DateAdded")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<bool>("DmResponse")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<ulong?>("GuildId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Reactions")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Response")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Trigger")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.ToTable("Expressions");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
|
||||||
{
|
{
|
||||||
b.Property<ulong>("UserId")
|
b.Property<ulong>("UserId")
|
||||||
|
|
Loading…
Reference in a new issue