mirror of
https://github.com/bitwarden/server
synced 2025-12-19 01:33:20 +00:00
add migrations
This commit is contained in:
3446
util/MySqlMigrations/Migrations/20251203004842_AddCipherArchives.Designer.cs
generated
Normal file
3446
util/MySqlMigrations/Migrations/20251203004842_AddCipherArchives.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.MySqlMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddCipherArchives : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: true)
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2314,6 +2314,9 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
b.Property<DateTime?>("ArchivedDate")
|
b.Property<DateTime?>("ArchivedDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
|
b.Property<string>("Archives")
|
||||||
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
b.Property<string>("Attachments")
|
b.Property<string>("Attachments")
|
||||||
.HasColumnType("longtext");
|
.HasColumnType("longtext");
|
||||||
|
|
||||||
|
|||||||
3452
util/PostgresMigrations/Migrations/20251203004812_AddCipherArchives.Designer.cs
generated
Normal file
3452
util/PostgresMigrations/Migrations/20251203004812_AddCipherArchives.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.PostgresMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddCipherArchives : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher",
|
||||||
|
type: "text",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2320,6 +2320,9 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<DateTime?>("ArchivedDate")
|
b.Property<DateTime?>("ArchivedDate")
|
||||||
.HasColumnType("timestamp with time zone");
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("Archives")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
b.Property<string>("Attachments")
|
b.Property<string>("Attachments")
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
|||||||
3435
util/SqliteMigrations/Migrations/20251203004807_AddCipherArchives.Designer.cs
generated
Normal file
3435
util/SqliteMigrations/Migrations/20251203004807_AddCipherArchives.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.SqliteMigrations.Migrations;
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddCipherArchives : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher",
|
||||||
|
type: "TEXT",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Archives",
|
||||||
|
table: "Cipher");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2303,6 +2303,9 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<DateTime?>("ArchivedDate")
|
b.Property<DateTime?>("ArchivedDate")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Archives")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
b.Property<string>("Attachments")
|
b.Property<string>("Attachments")
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user