-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EF migrations for SecretsManager flag (#2659)
* Add EF migrations for SecretsManager flag
- Loading branch information
1 parent
522df6e
commit 28a3d4a
Showing
9 changed files
with
7,212 additions
and
738 deletions.
There are no files selected for viewing
2,120 changes: 2,120 additions & 0 deletions
2,120
util/MySqlMigrations/Migrations/20230201175203_SecretsManagerOrganizationUser.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
util/MySqlMigrations/Migrations/20230201175203_SecretsManagerOrganizationUser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Bit.MySqlMigrations.Migrations; | ||
|
||
public partial class SecretsManagerOrganizationUser : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<bool>( | ||
name: "AccessSecretsManager", | ||
table: "OrganizationUser", | ||
type: "tinyint(1)", | ||
nullable: false, | ||
defaultValue: false); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "AccessSecretsManager", | ||
table: "OrganizationUser"); | ||
} | ||
} |
Oops, something went wrong.