mirror of
https://github.com/bitwarden/server.git
synced 2025-06-25 13:18:48 -05:00
PM-20574 fixing migration script
This commit is contained in:
parent
c8e9f020fb
commit
79dbb86661
@ -1,5 +1,5 @@
|
|||||||
CREATE OR ALTER PROCEDURE [dbo].[Organization_DeleteById]
|
CREATE OR ALTER PROCEDURE [dbo].[Organization_DeleteById]
|
||||||
@OrganizationId UNIQUEIDENTIFIER
|
@Id UNIQUEIDENTIFIER
|
||||||
WITH RECOMPILE
|
WITH RECOMPILE
|
||||||
AS
|
AS
|
||||||
BEGIN
|
BEGIN
|
||||||
|
@ -1,163 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace Bit.MySqlMigrations.Migrations;
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class _2025061000_OrganizationReportsql : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightCriticalApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
Applications = table.Column<string>(type: "longtext", nullable: false)
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
})
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
Date = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "longtext", nullable: false)
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
})
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_Id",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_OrganizationId",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_Id",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_OrganizationId",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightCriticalApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
Applications = table.Column<string>(type: "longtext", nullable: false)
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightCriticalApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightCriticalApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
})
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
Date = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "longtext", nullable: false)
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
})
|
|
||||||
.Annotation("MySql:CharSet", "utf8mb4");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_Id",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_OrganizationId",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_Id",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_OrganizationId",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
}
|
|
3208
util/MySqlMigrations/Migrations/20250613160900_2025-06-02_00_AddOrgUserDefaultCollection.sql.Designer.cs
generated
Normal file
3208
util/MySqlMigrations/Migrations/20250613160900_2025-06-02_00_AddOrgUserDefaultCollection.sql.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.MySqlMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class _20250602_00_AddOrgUserDefaultCollectionsql : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.MySqlMigrations.Migrations
|
namespace Bit.MySqlMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610173915_2025-06-10-00_OrganizationReport.sql")]
|
[Migration("20250613161007_2025-06-10-00_OrganizationReport.sql")]
|
||||||
partial class _2025061000_OrganizationReportsql
|
partial class _2025061000_OrganizationReportsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -682,8 +682,8 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("varchar(50)");
|
.HasColumnType("varchar(300)");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
@ -1048,6 +1048,9 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("varchar(300)");
|
.HasColumnType("varchar(300)");
|
||||||
@ -1062,6 +1065,9 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1529,6 +1535,10 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("varchar(1024)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.MySqlMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class _2025061000_OrganizationReportsql : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.MySqlMigrations.Migrations
|
namespace Bit.MySqlMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610173940_2025-06-10-01_OrganizationApplication.sql")]
|
[Migration("20250613161028_2025-06-10-01_OrganizationApplication.sql")]
|
||||||
partial class _2025061001_OrganizationApplicationsql
|
partial class _2025061001_OrganizationApplicationsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -682,8 +682,8 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("varchar(50)");
|
.HasColumnType("varchar(300)");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
@ -1048,6 +1048,9 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("varchar(300)");
|
.HasColumnType("varchar(300)");
|
||||||
@ -1062,6 +1065,9 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1529,6 +1535,10 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("tinyint(1)");
|
.HasColumnType("tinyint(1)");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("varchar(1024)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.MySqlMigrations.Migrations
|
namespace Bit.MySqlMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610180810_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
[Migration("20250613161051_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
||||||
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
@ -1,155 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace Bit.PostgresMigrations.Migrations;
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class _2025061000_OrganizationReportsql : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightCriticalApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
Applications = table.Column<string>(type: "text", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
Date = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "text", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_Id",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_OrganizationId",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_Id",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_OrganizationId",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightCriticalApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
Applications = table.Column<string>(type: "text", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightCriticalApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightCriticalApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
Date = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "text", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_Id",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_OrganizationId",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_Id",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_OrganizationId",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
}
|
|
@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace Bit.PostgresMigrations.Migrations
|
namespace Bit.PostgresMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610164247_2025-06-10-00_OrganizationReport.sql")]
|
[Migration("20250613161011_2025-06-10-00_OrganizationReport.sql")]
|
||||||
partial class _2025061000_OrganizationReportsql
|
partial class _2025061000_OrganizationReportsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -685,8 +685,8 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("character varying(50)")
|
.HasColumnType("character varying(300)")
|
||||||
.UseCollation("postgresIndetermanisticCollation");
|
.UseCollation("postgresIndetermanisticCollation");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
@ -1053,6 +1053,9 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("character varying(300)");
|
.HasColumnType("character varying(300)");
|
||||||
@ -1067,6 +1070,9 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1534,6 +1540,10 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("boolean");
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("character varying(1024)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.PostgresMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class _2025061000_OrganizationReportsql : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace Bit.PostgresMigrations.Migrations
|
namespace Bit.PostgresMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610173936_2025-06-10-01_OrganizationApplication.sql")]
|
[Migration("20250613161023_2025-06-10-01_OrganizationApplication.sql")]
|
||||||
partial class _2025061001_OrganizationApplicationsql
|
partial class _2025061001_OrganizationApplicationsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -685,8 +685,8 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("character varying(50)")
|
.HasColumnType("character varying(300)")
|
||||||
.UseCollation("postgresIndetermanisticCollation");
|
.UseCollation("postgresIndetermanisticCollation");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
@ -1053,6 +1053,9 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("character varying(300)");
|
.HasColumnType("character varying(300)");
|
||||||
@ -1067,6 +1070,9 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1534,6 +1540,10 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("boolean");
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("character varying(1024)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace Bit.PostgresMigrations.Migrations
|
namespace Bit.PostgresMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610180801_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
[Migration("20250613161047_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
||||||
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
@ -1,155 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace Bit.SqliteMigrations.Migrations;
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class _2025061000_OrganizationReportsql : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightCriticalApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "RiskInsightReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
Applications = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "OrganizationReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_OrganizationReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_OrganizationReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_Id",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationApplication_OrganizationId",
|
|
||||||
table: "OrganizationApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_Id",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_OrganizationReport_OrganizationId",
|
|
||||||
table: "OrganizationReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationApplication");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "OrganizationReport");
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightCriticalApplication",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
Applications = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightCriticalApplication", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightCriticalApplication_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "RiskInsightReport",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
OrganizationId = table.Column<Guid>(type: "TEXT", nullable: false),
|
|
||||||
CreationDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
ReportData = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
RevisionDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_RiskInsightReport", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_RiskInsightReport_Organization_OrganizationId",
|
|
||||||
column: x => x.OrganizationId,
|
|
||||||
principalTable: "Organization",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_Id",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightCriticalApplication_OrganizationId",
|
|
||||||
table: "RiskInsightCriticalApplication",
|
|
||||||
column: "OrganizationId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_Id",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "Id");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_RiskInsightReport_OrganizationId",
|
|
||||||
table: "RiskInsightReport",
|
|
||||||
column: "OrganizationId");
|
|
||||||
}
|
|
||||||
}
|
|
@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.SqliteMigrations.Migrations
|
namespace Bit.SqliteMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610164244_2025-06-10-00_OrganizationReport.sql")]
|
[Migration("20250613161003_2025-06-10-00_OrganizationReport.sql")]
|
||||||
partial class _2025061000_OrganizationReportsql
|
partial class _2025061000_OrganizationReportsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -671,7 +671,7 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
@ -1037,6 +1037,9 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
@ -1051,6 +1054,9 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1518,6 +1524,10 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.SqliteMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class _2025061000_OrganizationReportsql : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.SqliteMigrations.Migrations
|
namespace Bit.SqliteMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610173943_2025-06-10-01_OrganizationApplication.sql")]
|
[Migration("20250613161031_2025-06-10-01_OrganizationApplication.sql")]
|
||||||
partial class _2025061001_OrganizationApplicationsql
|
partial class _2025061001_OrganizationApplicationsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -671,7 +671,7 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
b.Property<Guid?>("OrganizationId")
|
||||||
@ -1037,6 +1037,9 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<DateTime>("CreationDate")
|
b.Property<DateTime>("CreationDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultUserCollectionEmail")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("ExternalId")
|
b.Property<string>("ExternalId")
|
||||||
.HasMaxLength(300)
|
.HasMaxLength(300)
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
@ -1051,6 +1054,9 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<DateTime>("RevisionDate")
|
b.Property<DateTime>("RevisionDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
b.HasIndex("OrganizationId");
|
||||||
@ -1518,6 +1524,10 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<bool>("Disabled")
|
b.Property<bool>("Disabled")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Emails")
|
||||||
|
.HasMaxLength(1024)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<DateTime?>("ExpirationDate")
|
b.Property<DateTime?>("ExpirationDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||||||
namespace Bit.SqliteMigrations.Migrations
|
namespace Bit.SqliteMigrations.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20250610180806_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
[Migration("20250613161043_2025-06-10_02_UpdateOrgDeleteByIdProc.sql")]
|
||||||
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
partial class _20250610_02_UpdateOrgDeleteByIdProcsql
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
Loading…
x
Reference in New Issue
Block a user