mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Migration Fix (#1448)
* created stubs for missing ef provider methods * fixed the initial postgres migration
This commit is contained in:
@ -7,11 +7,11 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace Bit.EntityFrameworkMigrations.Migrations
|
||||
namespace Bit.PostgresMigrations.Migrations
|
||||
{
|
||||
[DbContext(typeof(DatabaseContext))]
|
||||
[Migration("20210617163014_Postgres_Init")]
|
||||
partial class Postgres_Init
|
||||
[Migration("20210708191531_Init")]
|
||||
partial class Init
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
@ -699,6 +699,9 @@ namespace Bit.EntityFrameworkMigrations.Migrations
|
||||
b.Property<byte>("Status")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<bool>("UseEvents")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Provider");
|
@ -2,9 +2,9 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace Bit.EntityFrameworkMigrations.Migrations
|
||||
namespace Bit.PostgresMigrations.Migrations
|
||||
{
|
||||
public partial class Postgres_Init : Migration
|
||||
public partial class Init : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
@ -133,6 +133,7 @@ namespace Bit.EntityFrameworkMigrations.Migrations
|
||||
BusinessTaxNumber = table.Column<string>(type: "text", nullable: true),
|
||||
BillingEmail = table.Column<string>(type: "text", nullable: true),
|
||||
Status = table.Column<byte>(type: "smallint", nullable: false),
|
||||
UseEvents = table.Column<bool>(type: "boolean", nullable: false),
|
||||
Enabled = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CreationDate = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
RevisionDate = table.Column<DateTime>(type: "timestamp without time zone", nullable: false)
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user