diff --git a/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.Designer.cs b/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.Designer.cs new file mode 100644 index 000000000..f63fce175 --- /dev/null +++ b/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.Designer.cs @@ -0,0 +1,56 @@ +// +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using PrivateVcs.Data; + +#nullable disable + +namespace PrivateVcs.Migrations +{ + [DbContext(typeof(PrivateVcDatabase))] + [Migration("20240221105532_DeleteWaitingRoom")] + partial class DeleteWaitingRoom + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasDefaultSchema("PrivateVcs") + .HasAnnotation("ProductVersion", "8.0.1") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("PrivateVcs.Models.PrivateVcConfig", b => + { + b.Property("GuildId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint unsigned"); + + b.Property("AllowedRoles") + .HasColumnType("longtext"); + + b.Property("ChannelFilterRegex") + .HasColumnType("longtext"); + + b.Property("CreatorRoles") + .HasColumnType("longtext"); + + b.Property("DeleteWaitingRoom") + .HasColumnType("tinyint(1)"); + + b.Property("PrivateCategoryId") + .HasColumnType("bigint unsigned"); + + b.Property("WaitingVcName") + .HasColumnType("longtext"); + + b.HasKey("GuildId"); + + b.ToTable("PrivateVcConfigs", "PrivateVcs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.cs b/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.cs new file mode 100644 index 000000000..a71ab75a1 --- /dev/null +++ b/backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.cs @@ -0,0 +1,24 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace PrivateVcs.Migrations; + +/// +public partial class DeleteWaitingRoom : Migration +{ + /// + protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn( + name: "DeleteWaitingRoom", + schema: "PrivateVcs", + table: "PrivateVcConfigs", + type: "tinyint(1)", + nullable: false, + defaultValue: false); + + /// + protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn( + name: "DeleteWaitingRoom", + schema: "PrivateVcs", + table: "PrivateVcConfigs"); +} diff --git a/backend/PrivateVCs/Migrations/PrivateVcDatabaseModelSnapshot.cs b/backend/PrivateVCs/Migrations/PrivateVcDatabaseModelSnapshot.cs index 20c531dea..d5c84a063 100644 --- a/backend/PrivateVCs/Migrations/PrivateVcDatabaseModelSnapshot.cs +++ b/backend/PrivateVCs/Migrations/PrivateVcDatabaseModelSnapshot.cs @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("PrivateVcs") - .HasAnnotation("ProductVersion", "7.0.4") + .HasAnnotation("ProductVersion", "8.0.1") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("PrivateVcs.Models.PrivateVcConfig", b => @@ -34,6 +34,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("CreatorRoles") .HasColumnType("longtext"); + b.Property("DeleteWaitingRoom") + .HasColumnType("tinyint(1)"); + b.Property("PrivateCategoryId") .HasColumnType("bigint unsigned"); diff --git a/backend/Role Reactions/Migrations/20231119201930_PrerequesiteRoles.cs b/backend/Role Reactions/Migrations/20231119201930_PrerequesiteRoles.cs index e15d37a23..99921ce76 100644 --- a/backend/Role Reactions/Migrations/20231119201930_PrerequesiteRoles.cs +++ b/backend/Role Reactions/Migrations/20231119201930_PrerequesiteRoles.cs @@ -2,24 +2,23 @@ #nullable disable -namespace RoleReactions.Migrations +namespace RoleReactions.Migrations; + +/// +public partial class PrerequesiteRoles : Migration { /// - public partial class PrerequesiteRoles : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn( - name: "RoleToPrerequesite", - schema: "RoleReactions", - table: "RoleReactionsMenu", - type: "longtext", - nullable: true) - .Annotation("MySql:CharSet", "utf8mb4"); + protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn( + name: "RoleToPrerequesite", + schema: "RoleReactions", + table: "RoleReactionsMenu", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); - /// - protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn( - name: "RoleToPrerequesite", - schema: "RoleReactions", - table: "RoleReactionsMenu"); - } + /// + protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn( + name: "RoleToPrerequesite", + schema: "RoleReactions", + table: "RoleReactionsMenu"); }