mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
[EC-427] Add mysql migration script
This commit is contained in:
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace Bit.MySqlMigrations.Migrations
|
namespace Bit.MySqlMigrations.Migrations;
|
||||||
|
|
||||||
|
public partial class ProviderAddProviderTypeBillingPhone : Migration
|
||||||
{
|
{
|
||||||
public partial class ProviderAddProviderTypeBillingPhone : Migration
|
|
||||||
{
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.AddColumn<string>(
|
migrationBuilder.AddColumn<string>(
|
||||||
@ -33,5 +33,4 @@ namespace Bit.MySqlMigrations.Migrations
|
|||||||
name: "Type",
|
name: "Type",
|
||||||
table: "Provider");
|
table: "Provider");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
START TRANSACTION;
|
||||||
|
|
||||||
|
ALTER TABLE `Provider` ADD `BillingPhone` longtext CHARACTER SET utf8mb4 NULL;
|
||||||
|
|
||||||
|
ALTER TABLE `Provider` ADD `Type` tinyint unsigned NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
|
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
|
||||||
|
VALUES ('20221226164641_ProviderAddProviderTypeBillingPhone', '6.0.12');
|
||||||
|
|
||||||
|
COMMIT;
|
Reference in New Issue
Block a user