mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Sync EF migrations for .NET / EF Core 8 (#4448)
* Sync EF migrations for .NET 8 * Format * Redo migrations with billing fix * Forgot to format again
This commit is contained in:
27
util/SqliteMigrations/Migrations/20240701175209_Net8Sync.cs
Normal file
27
util/SqliteMigrations/Migrations/20240701175209_Net8Sync.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Bit.SqliteMigrations.Migrations;
|
||||
|
||||
/// <inheritdoc />
|
||||
public partial class Net8Sync : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_ProviderInvoiceItem_Id_InvoiceId",
|
||||
table: "ProviderInvoiceItem");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ProviderInvoiceItem_Id_InvoiceId",
|
||||
table: "ProviderInvoiceItem",
|
||||
columns: new[] { "Id", "InvoiceId" },
|
||||
unique: true);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user