Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions openespi-authserver/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spring:
schemas: oauth2_authserver
validate-on-migrate: true
clean-disabled: true
# Skip V3+ pending ESPI 4.0 XSD-aligned schema repair (see issue #123).
# V1+V2 provide enough for OAuth2 grant + introspection; V3 onwards is
# seed/demo data that references columns missing from MySQL V1.
target: "2.0.0"

# Logging Configuration - Production Levels
logging:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ CREATE TABLE oauth2_registered_client (
scopes varchar(1000) NOT NULL,
client_settings varchar(2000) NOT NULL,
token_settings varchar(2000) NOT NULL,
PRIMARY KEY (id)
PRIMARY KEY (id),
CONSTRAINT uk_oauth2_registered_client_client_id UNIQUE (client_id)
);

-- ESPI Application Information mapping
Expand Down Expand Up @@ -105,7 +106,6 @@ CREATE TABLE espi_application_info (

-- Create indexes for performance
CREATE INDEX idx_oauth2_authorization_client_principal ON oauth2_authorization (registered_client_id, principal_name);
CREATE INDEX idx_oauth2_registered_client_id ON oauth2_registered_client (client_id);
CREATE INDEX idx_espi_application_client_id ON espi_application_info (client_id);

-- Insert sample data for local development
Expand Down
Loading