forked from Ed-Fi-Alliance-OSS/AdminAPI-1.x
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AC-116] Create Health Check Credentials for Instances on Startup (#216)
Add parameter to appsettings Add migration to create a new column to store key and secret Update AdminConsole InitialData to create, if not exists, a vendor and an application Update Instances synchronization to include the insert of key and secret
- Loading branch information
1 parent
fef9c1a
commit 24102c5
Showing
25 changed files
with
1,181 additions
and
12 deletions.
There are no files selected for viewing
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
183 changes: 183 additions & 0 deletions
183
...e/DataAccess/Artifacts/Admin/MsSql/20250120152308_AddApiCredentialsToInstance.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...astructure/DataAccess/Artifacts/Admin/MsSql/20250120152308_AddApiCredentialsToInstance.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,32 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace EdFi.Ods.AdminApi.AdminConsole.Infrastructure.DataAccess.Artifacts.Admin.MsSql | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AddApiCredentialsToInstance : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "ApiCredentials", | ||
schema: "adminconsole", | ||
table: "Instances", | ||
type: "nvarchar(max)", | ||
nullable: true | ||
); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "ApiCredentials", | ||
schema: "adminconsole", | ||
table: "Instances" | ||
); | ||
} | ||
} | ||
} |
Oops, something went wrong.