Skip to content

Commit 5b14159

Browse files
qxz2yy3qxz2yy3
authored andcommitted
fix: create JtiValidationPostgresqlMigrationExtension extension
1 parent a7f98c6 commit 5b14159

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/********************************************************************************
2+
* Copyright (c) 2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License, Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations
15+
* under the License.
16+
*
17+
* SPDX-License-Identifier: Apache-2.0
18+
********************************************************************************/
19+
20+
package org.eclipse.tractusx.edc.postgresql.migration;
21+
22+
public class JtiValidationPostgresqlMigrationExtension extends AbstractPostgresqlMigrationExtension {
23+
private static final String NAME_SUBSYSTEM = "jti-validation";
24+
25+
@Override
26+
protected String getSubsystemName() {
27+
return NAME_SUBSYSTEM;
28+
}
29+
30+
@Override
31+
protected String getMigrationSubsystem() {
32+
return NAME_SUBSYSTEM;
33+
}
34+
}

edc-extensions/migrations/control-plane-migration/src/main/resources/META-INF/services/org.eclipse.edc.spi.system.ServiceExtension

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ org.eclipse.tractusx.edc.postgresql.migration.ContractNegotiationPostgresqlMigra
2727
org.eclipse.tractusx.edc.postgresql.migration.DataPlaneInstancePostgresqlMigrationExtension
2828
org.eclipse.tractusx.edc.postgresql.migration.EdrIndexPostgresqlMigrationExtension
2929
org.eclipse.tractusx.edc.postgresql.migration.FederatedCatalogCacheMigrationExtension
30+
org.eclipse.tractusx.edc.postgresql.migration.JtiValidationPostgresqlMigrationExtension
3031
org.eclipse.tractusx.edc.postgresql.migration.PolicyMonitorPostgresqlMigrationExtension
3132
org.eclipse.tractusx.edc.postgresql.migration.PolicyPostgresqlMigrationExtension
3233
org.eclipse.tractusx.edc.postgresql.migration.TransferProcessPostgresqlMigrationExtension
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--
2+
-- Copyright (c) 2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3+
--
4+
-- This program and the accompanying materials are made available under the
5+
-- terms of the Apache License, Version 2.0 which is available at
6+
-- https://www.apache.org/licenses/LICENSE-2.0
7+
--
8+
-- SPDX-License-Identifier: Apache-2.0
9+
--
10+
-- Contributors:
11+
-- Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
12+
--
13+
14+
--
15+
-- table: edc_jti_validation
16+
--
17+
18+
CREATE TABLE IF NOT EXISTS edc_jti_validation
19+
(
20+
token_id VARCHAR NOT NULL PRIMARY KEY,
21+
expires_at BIGINT -- expiry time in epoch millis
22+
);
23+
24+

0 commit comments

Comments
 (0)