-
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.
add Data_Exchange_Governance credential
- Loading branch information
1 parent
aa378a8
commit 491588a
Showing
16 changed files
with
1,805 additions
and
32 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
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
1,657 changes: 1,657 additions & 0 deletions
1,657
....Migrations/Migrations/20240711100008_190-AddDataExchangeGovernanceCredential.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
...ialIssuer.Migrations/Migrations/20240711100008_190-AddDataExchangeGovernanceCredential.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,66 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Org.Eclipse.TractusX.SsiCredentialIssuer.Migrations.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class _190AddDataExchangeGovernanceCredential : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.InsertData( | ||
schema: "issuer", | ||
table: "verified_credential_external_types", | ||
columns: new[] { "id", "label" }, | ||
values: new object[] { 12, "DATA_EXCHANGE_GOVERNANCE_CREDENTIAL" }); | ||
|
||
migrationBuilder.InsertData( | ||
schema: "issuer", | ||
table: "verified_credential_types", | ||
columns: new[] { "id", "label" }, | ||
values: new object[] { 12, "DATA_EXCHANGE_GOVERNANCE_CREDENTIAL" }); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.Sql("DELETE FROM issuer.verified_credential_external_type_detail_versions WHERE verified_credential_external_type_id = 12"); | ||
migrationBuilder.Sql("DELETE FROM issuer.verified_credential_type_assigned_external_types WHERE verified_credential_type_id = 12"); | ||
migrationBuilder.Sql("DELETE FROM issuer.verified_credential_type_assigned_kinds WHERE verified_credential_type_id = 12"); | ||
migrationBuilder.Sql("DELETE FROM issuer.verified_credential_type_assigned_use_cases WHERE verified_credential_type_id = 12"); | ||
|
||
migrationBuilder.DeleteData( | ||
schema: "issuer", | ||
table: "verified_credential_external_types", | ||
keyColumn: "id", | ||
keyValue: 12); | ||
|
||
migrationBuilder.DeleteData( | ||
schema: "issuer", | ||
table: "verified_credential_types", | ||
keyColumn: "id", | ||
keyValue: 12); | ||
} | ||
} | ||
} |
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
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
7 changes: 7 additions & 0 deletions
7
src/database/SsiCredentialIssuer.Migrations/Seeder/Data/use_cases.consortia.json
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,7 @@ | ||
[ | ||
{ | ||
"id": "1aacde78-35ec-4df3-ba1e-f988cddcbbd9", | ||
"name": "None", | ||
"shortname": "None" | ||
} | ||
] |
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
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
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
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
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
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
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
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
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