-
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.
[AC-1360] Added EF migration scripts
- Loading branch information
Showing
12 changed files
with
6,777 additions
and
3 deletions.
There are no files selected for viewing
File renamed without changes.
2,231 changes: 2,231 additions & 0 deletions
2,231
util/MySqlMigrations/Migrations/20230803195421_PopulateResellerNames.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
util/MySqlMigrations/Migrations/20230803195421_PopulateResellerNames.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,24 @@ | ||
using Bit.Core.Utilities; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Bit.MySqlMigrations.Migrations; | ||
|
||
/// <inheritdoc /> | ||
public partial class PopulateResellerNames : Migration | ||
{ | ||
private const string _scriptLocation = "MySqlMigrations.HelperScripts.2023-08-03_00_PopulateResellerNames.sql"; | ||
|
||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.Sql(CoreHelpers.GetEmbeddedResourceContentsAsync(_scriptLocation)); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
throw new Exception("Irreversible migration"); | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.