Migration to Spring Boot 2.7.10 (#1320)
* Initial commit * Fix compile breaks * Fix hibernate config * Fix hibernate config * Fix failing tests * Improve logging * Improve logging * Fix Sonar issues * Remove BusProperties * Add BusProperties bean back in * Fix JPA workaround * Fix CVE-2021-22044 * Fix test failures * Fix PR review findings * Fix CVEs * Remove H2 version downgrade, fix schema migration, enable legacy mode * Downgrade Vaadin back to 8.14.3 * Fix EventPublisherHolder * Fix RemoteTenantAwareEvent * Fixed EventPublisherAutoConfiguration * New version of spring-hateoas requires links to be expanded (Mgmt API) * New version of spring-hateoas requires links to be expanded (Mgmt API) * Fix PR review findings * Fix PR review findings * Fix PR review findings * Update README.md * MariaDB Java Client downgrade to maintain compatibility with AWS Aurora * Temporarily disable RSQL test that depends on DB collation type * Upgrade to boot 2.7.10 * Upgrade snakeyaml to 1.33 * Upgrade Spring Security OAuth2 to version 5.7.7 * Remove obsolete exclusion of junit-vintage-engine * Upgrade jackson-bom to 2.14.2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
ALTER TABLE sp_artifact DROP COLUMN sha1_hash;
|
||||
ALTER TABLE sp_artifact CHANGE gridfs_file_name sha1_hash varchar(40) not null;
|
||||
CREATE INDEX sp_idx_artifact_02 ON sp_artifact (tenant, sha1_hash);
|
||||
ALTER TABLE sp_artifact ALTER COLUMN gridfs_file_name RENAME TO sha1_hash;
|
||||
ALTER TABLE sp_artifact ALTER sha1_hash varchar(40) not null;
|
||||
CREATE INDEX sp_idx_artifact_02 ON sp_artifact (tenant, sha1_hash);
|
||||
|
||||
@@ -2,14 +2,14 @@ ALTER TABLE sp_rollout ADD COLUMN deleted BOOLEAN;
|
||||
|
||||
UPDATE sp_rollout SET deleted = 0;
|
||||
|
||||
ALTER TABLE sp_action MODIFY target BIGINT NOT NULL;
|
||||
ALTER TABLE sp_action MODIFY distribution_set BIGINT NOT NULL;
|
||||
ALTER TABLE sp_action MODIFY status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_action_status MODIFY status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_rollout MODIFY status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_rollout MODIFY distribution_set BIGINT NOT NULL;
|
||||
ALTER TABLE sp_rolloutgroup MODIFY rollout BIGINT NOT NULL;
|
||||
ALTER TABLE sp_rolloutgroup MODIFY status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_action ALTER target BIGINT NOT NULL;
|
||||
ALTER TABLE sp_action ALTER distribution_set BIGINT NOT NULL;
|
||||
ALTER TABLE sp_action ALTER status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_action_status ALTER status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_rollout ALTER status INTEGER NOT NULL;
|
||||
ALTER TABLE sp_rollout ALTER distribution_set BIGINT NOT NULL;
|
||||
ALTER TABLE sp_rolloutgroup ALTER rollout BIGINT NOT NULL;
|
||||
ALTER TABLE sp_rolloutgroup ALTER status INTEGER NOT NULL;
|
||||
|
||||
ALTER TABLE sp_ds_type_element DROP CONSTRAINT fk_ds_type_element_element;
|
||||
ALTER TABLE sp_ds_type_element
|
||||
|
||||
@@ -26,6 +26,6 @@ ALTER TABLE sp_target
|
||||
REFERENCES sp_distribution_set (id);
|
||||
|
||||
ALTER TABLE sp_target_info DROP CONSTRAINT fk_targ_stat_targ;
|
||||
ALTER TABLE sp_target_info DROP INDEX sp_idx_target_info_02;
|
||||
DROP INDEX sp_idx_target_info_02;
|
||||
|
||||
DROP TABLE sp_target_info;
|
||||
DROP TABLE sp_target_info;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
ALTER TABLE sp_action_status DROP INDEX sp_idx_action_status_01;
|
||||
ALTER TABLE sp_rollout DROP INDEX sp_idx_rollout_01;
|
||||
ALTER TABLE sp_rolloutgroup DROP INDEX sp_idx_rolloutgroup_01;
|
||||
ALTER TABLE sp_target DROP INDEX sp_idx_target_02;
|
||||
ALTER TABLE sp_target_filter_query DROP INDEX sp_idx_target_filter_query_01;
|
||||
ALTER TABLE sp_distribution_set DROP INDEX sp_idx_distribution_set_01;
|
||||
ALTER TABLE sp_distribution_set DROP INDEX sp_idx_distribution_set_02;
|
||||
DROP INDEX sp_idx_action_status_01;
|
||||
DROP INDEX sp_idx_rollout_01;
|
||||
DROP INDEX sp_idx_rolloutgroup_01;
|
||||
DROP INDEX sp_idx_target_02;
|
||||
DROP INDEX sp_idx_target_filter_query_01;
|
||||
DROP INDEX sp_idx_distribution_set_01;
|
||||
DROP INDEX sp_idx_distribution_set_02;
|
||||
CREATE INDEX sp_idx_distribution_set_01 ON sp_distribution_set (tenant, deleted, complete);
|
||||
|
||||
@@ -4,7 +4,7 @@ CASE WHEN (action_type = 'SOFT') THEN 1
|
||||
WHEN (action_type = 'TIMEFORCED') THEN 2
|
||||
ELSE 0 END;
|
||||
ALTER TABLE sp_action DROP COLUMN action_type;
|
||||
ALTER TABLE sp_action CHANGE COLUMN action_type_new action_type integer;
|
||||
ALTER TABLE sp_action ALTER COLUMN action_type_new RENAME TO action_type;
|
||||
|
||||
ALTER TABLE sp_rollout ADD COLUMN action_type_new integer not null;
|
||||
UPDATE sp_rollout SET action_type_new =
|
||||
@@ -12,7 +12,7 @@ CASE WHEN (action_type = 'SOFT') THEN 1
|
||||
WHEN (action_type = 'TIMEFORCED') THEN 2
|
||||
ELSE 0 END;
|
||||
ALTER TABLE sp_rollout DROP COLUMN action_type;
|
||||
ALTER TABLE sp_rollout CHANGE COLUMN action_type_new action_type integer;
|
||||
ALTER TABLE sp_rollout ALTER COLUMN action_type_new RENAME to action_type;
|
||||
|
||||
ALTER TABLE sp_target ADD COLUMN update_status_new integer not null;
|
||||
UPDATE sp_target SET update_status_new =
|
||||
@@ -22,4 +22,4 @@ CASE WHEN (update_status = 'IN_SYNC') THEN 1
|
||||
WHEN (update_status = 'REGISTERED') THEN 4
|
||||
ELSE 0 END;
|
||||
ALTER TABLE sp_target DROP COLUMN update_status;
|
||||
ALTER TABLE sp_target CHANGE COLUMN update_status_new update_status integer;
|
||||
ALTER TABLE sp_target ALTER COLUMN update_status_new RENAME TO update_status;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
ALTER TABLE sp_action_status_messages CHANGE COLUMN detail_message detail_message varchar(512) not null;
|
||||
ALTER TABLE sp_action CHANGE COLUMN distribution_set distribution_set bigint not null;
|
||||
ALTER TABLE sp_action CHANGE COLUMN target target bigint not null;
|
||||
ALTER TABLE sp_action CHANGE COLUMN status status integer not null;
|
||||
ALTER TABLE sp_action_status CHANGE COLUMN target_occurred_at target_occurred_at bigint not null;
|
||||
ALTER TABLE sp_action_status CHANGE COLUMN status status integer not null;
|
||||
ALTER TABLE sp_rollout CHANGE COLUMN distribution_set distribution_set bigint not null;
|
||||
ALTER TABLE sp_rollout CHANGE COLUMN status status integer not null;
|
||||
ALTER TABLE sp_rolloutgroup CHANGE COLUMN rollout rollout bigint not null;
|
||||
ALTER TABLE sp_rolloutgroup CHANGE COLUMN status status integer not null;
|
||||
ALTER TABLE sp_artifact CHANGE COLUMN sha1_hash sha1_hash varchar(40) not null;
|
||||
ALTER TABLE sp_target CHANGE COLUMN controller_id controller_id varchar(64) not null;
|
||||
ALTER TABLE sp_action_status_messages ALTER detail_message varchar(512) not null;
|
||||
ALTER TABLE sp_action ALTER distribution_set bigint not null;
|
||||
ALTER TABLE sp_action ALTER target bigint not null;
|
||||
ALTER TABLE sp_action ALTER status integer not null;
|
||||
ALTER TABLE sp_action_status ALTER target_occurred_at bigint not null;
|
||||
ALTER TABLE sp_action_status ALTER status integer not null;
|
||||
ALTER TABLE sp_rollout ALTER distribution_set bigint not null;
|
||||
ALTER TABLE sp_rollout ALTER status integer not null;
|
||||
ALTER TABLE sp_rolloutgroup ALTER rollout bigint not null;
|
||||
ALTER TABLE sp_rolloutgroup ALTER status integer not null;
|
||||
ALTER TABLE sp_artifact ALTER sha1_hash varchar(40) not null;
|
||||
ALTER TABLE sp_target ALTER controller_id varchar(64) not null;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
ALTER TABLE sp_target CHANGE COLUMN update_status update_status integer not null;
|
||||
ALTER TABLE sp_rollout CHANGE COLUMN action_type action_type integer not null;
|
||||
ALTER TABLE sp_action CHANGE COLUMN action_type action_type integer not null;
|
||||
ALTER TABLE sp_target ALTER update_status integer not null;
|
||||
ALTER TABLE sp_rollout ALTER action_type integer not null;
|
||||
ALTER TABLE sp_action ALTER action_type integer not null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ALTER TABLE sp_target_info MODIFY update_status VARCHAR(16) not null;
|
||||
ALTER TABLE sp_action MODIFY action_type VARCHAR(16) not null;
|
||||
ALTER TABLE sp_rollout MODIFY action_type VARCHAR(16) not null;
|
||||
ALTER TABLE sp_tenant_configuration MODIFY conf_key VARCHAR(128) not null;
|
||||
ALTER TABLE sp_tenant_configuration MODIFY conf_value VARCHAR(512) not null;
|
||||
ALTER TABLE sp_target_info ALTER update_status VARCHAR(16) not null;
|
||||
ALTER TABLE sp_action ALTER action_type VARCHAR(16) not null;
|
||||
ALTER TABLE sp_rollout ALTER action_type VARCHAR(16) not null;
|
||||
ALTER TABLE sp_tenant_configuration ALTER conf_key VARCHAR(128) not null;
|
||||
ALTER TABLE sp_tenant_configuration ALTER conf_value VARCHAR(512) not null;
|
||||
|
||||
@@ -12,7 +12,9 @@ spring.main.allow-bean-definition-overriding=true
|
||||
### JPA / Datasource - START
|
||||
spring.jpa.database=H2
|
||||
spring.jpa.show-sql=false
|
||||
spring.datasource.url=jdbc:h2:mem:testdb;MODE=MySQL;
|
||||
# need to use legacy mode for now until we can upgrade EclipseLink
|
||||
# (see details: https://github.com/eclipse-ee4j/eclipselink/issues/1393)
|
||||
spring.datasource.url=jdbc:h2:mem:testdb;MODE=LEGACY;
|
||||
# Logging
|
||||
spring.datasource.eclipselink.logging.logger=JavaLogger
|
||||
spring.jpa.properties.eclipselink.logging.level=off
|
||||
|
||||
Reference in New Issue
Block a user