Skip to content

Commit

Permalink
Added private vc migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Feb 21, 2024
1 parent 2cc5c49 commit 28b3ba8
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 18 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions backend/PrivateVCs/Migrations/20240221105532_DeleteWaitingRoom.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PrivateVcs.Migrations;

/// <inheritdoc />
public partial class DeleteWaitingRoom : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn<bool>(
name: "DeleteWaitingRoom",
schema: "PrivateVcs",
table: "PrivateVcConfigs",
type: "tinyint(1)",
nullable: false,
defaultValue: false);

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn(
name: "DeleteWaitingRoom",
schema: "PrivateVcs",
table: "PrivateVcConfigs");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand All @@ -34,6 +34,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<string>("CreatorRoles")
.HasColumnType("longtext");

b.Property<bool>("DeleteWaitingRoom")
.HasColumnType("tinyint(1)");

b.Property<ulong>("PrivateCategoryId")
.HasColumnType("bigint unsigned");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@

#nullable disable

namespace RoleReactions.Migrations
namespace RoleReactions.Migrations;

/// <inheritdoc />
public partial class PrerequesiteRoles : Migration
{
/// <inheritdoc />
public partial class PrerequesiteRoles : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn<string>(
name: "RoleToPrerequesite",
schema: "RoleReactions",
table: "RoleReactionsMenu",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.AddColumn<string>(
name: "RoleToPrerequesite",
schema: "RoleReactions",
table: "RoleReactionsMenu",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn(
name: "RoleToPrerequesite",
schema: "RoleReactions",
table: "RoleReactionsMenu");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropColumn(
name: "RoleToPrerequesite",
schema: "RoleReactions",
table: "RoleReactionsMenu");
}

0 comments on commit 28b3ba8

Please sign in to comment.