diff --git a/src/main/resources/db/changelog/1.0.0/changelog.yml b/src/main/resources/db/changelog/1.0.0/changelog.yml index cbedb95..de47195 100644 --- a/src/main/resources/db/changelog/1.0.0/changelog.yml +++ b/src/main/resources/db/changelog/1.0.0/changelog.yml @@ -74,6 +74,12 @@ databaseChangeLog: type: TEXT constraints: nullable: false + - column: + name: admin_editable + type: BOOLEAN + defaultValue: TRUE + constraints: + nullable: false - createTable: tableName: doors columns: @@ -188,6 +194,51 @@ databaseChangeLog: type: DATE constraints: nullable: false + - insert: + tableName: oauth2_registered_client + columns: + - column: + name: id + value: f1434eb3-7c38-45c2-9e21-f1917157ffb7 + - column: + name: client_id + value: admin + - column: + name: client_id_issued_at + valueComputed: CURRENT_TIMESTAMP + - column: + name: client_secret + value: '{bcrypt}$2a$12$ihzZm/AsJCAYjoII9hd1IO25xpmHhnsOnaSuvfTPuMgt45w7cFNXi' + - column: + name: client_secret_expires_at + value: '2030-06-02T12:00:00' + - column: + name: client_name + value: admin-client + - column: + name: client_authentication_methods + value: client_secret_post + - column: + name: authorization_grant_types + value: refresh_token,authorization_code + - column: + name: redirect_uris + value: 'localhost:8082/units' + - column: + name: post_logout_redirect_uris + value: 'localhost:8082/units' + - column: + name: scopes + value: '' + - column: + name: client_settings + value: '{"@class":"java.util.Collections$UnmodifiableMap","settings.client.require-proof-key":false,"settings.client.require-authorization-consent":false}' + - column: + name: token_settings + value: '{"@class":"java.util.Collections$UnmodifiableMap","settings.token.reuse-refresh-tokens":false,"settings.token.x509-certificate-bound-access-tokens":false,"settings.token.id-token-signature-algorithm":["org.springframework.security.oauth2.jose.jws.SignatureAlgorithm","RS256"],"settings.token.access-token-time-to-live":["java.time.Duration",600.000000000],"settings.token.access-token-format":{"@class":"org.springframework.security.oauth2.server.authorization.settings.OAuth2TokenFormat","value":"self-contained"},"settings.token.refresh-token-time-to-live":["java.time.Duration",600.000000000],"settings.token.authorization-code-time-to-live":["java.time.Duration",300.000000000],"settings.token.device-code-time-to-live":["java.time.Duration",300.000000000]}' + - column: + name: admin_editable + value: 'FALSE' - addForeignKeyConstraint: baseColumnNames: unit_id baseTableName: doors