1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

[EC-427] Provider table Type and BillingPhone MySql migrations

This commit is contained in:
Rui Tome
2022-12-26 17:04:17 +00:00
parent 81027a6bc1
commit 3814b601b9
3 changed files with 1731 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bit.MySqlMigrations.Migrations
{
public partial class ProviderAddProviderTypeBillingPhone : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "BillingPhone",
table: "Provider",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<byte>(
name: "Type",
table: "Provider",
type: "tinyint unsigned",
nullable: false,
defaultValue: (byte)0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "BillingPhone",
table: "Provider");
migrationBuilder.DropColumn(
name: "Type",
table: "Provider");
}
}
}

View File

@ -16,7 +16,7 @@ namespace Bit.MySqlMigrations.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.4")
.HasAnnotation("ProductVersion", "6.0.12")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.AuthRequest", b =>
@ -842,6 +842,9 @@ namespace Bit.MySqlMigrations.Migrations
b.Property<string>("BillingEmail")
.HasColumnType("longtext");
b.Property<string>("BillingPhone")
.HasColumnType("longtext");
b.Property<string>("BusinessAddress1")
.HasColumnType("longtext");
@ -875,6 +878,9 @@ namespace Bit.MySqlMigrations.Migrations
b.Property<byte>("Status")
.HasColumnType("tinyint unsigned");
b.Property<byte>("Type")
.HasColumnType("tinyint unsigned");
b.Property<bool>("UseEvents")
.HasColumnType("tinyint(1)");