From acaba286bb6c0702248e4535311ba8e2045e2b69 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:52:24 +0000 Subject: [PATCH] deps: update exposed to v0.58.0 The `createMissingTablesAndColumns` function was deprecated, ignore this for now as finding a different solution requires more work. --- gradle/libs.versions.toml | 2 +- model/src/main/kotlin/utils/PostgresProvenanceFileStorage.kt | 1 + .../src/main/kotlin/UploadResultToPostgresCommand.kt | 1 + .../main/kotlin/provenance/PostgresNestedProvenanceStorage.kt | 1 + .../main/kotlin/provenance/PostgresPackageProvenanceStorage.kt | 1 + scanner/src/main/kotlin/storages/PackageBasedPostgresStorage.kt | 1 + .../src/main/kotlin/storages/ProvenanceBasedPostgresStorage.kt | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ce588823a8597..197a95d7d9a6a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -23,7 +23,7 @@ cyclonedx = "10.1.0" diffUtils = "4.15" discoClient = "21.0.1" diskLruCache = "2.0.2" -exposed = "0.57.0" +exposed = "0.58.0" flexmark = "0.64.8" freemarker = "2.3.34" greenmail = "2.1.2" diff --git a/model/src/main/kotlin/utils/PostgresProvenanceFileStorage.kt b/model/src/main/kotlin/utils/PostgresProvenanceFileStorage.kt index 8739bcc16338b..5163bd3d18821 100644 --- a/model/src/main/kotlin/utils/PostgresProvenanceFileStorage.kt +++ b/model/src/main/kotlin/utils/PostgresProvenanceFileStorage.kt @@ -66,6 +66,7 @@ class PostgresProvenanceFileStorage( withDataBaseLock { if (!tableExists(table.tableName)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") createMissingTablesAndColumns(table) } } diff --git a/plugins/commands/upload-result-to-postgres/src/main/kotlin/UploadResultToPostgresCommand.kt b/plugins/commands/upload-result-to-postgres/src/main/kotlin/UploadResultToPostgresCommand.kt index fb5685ae9dab3..7e838d551c86e 100644 --- a/plugins/commands/upload-result-to-postgres/src/main/kotlin/UploadResultToPostgresCommand.kt +++ b/plugins/commands/upload-result-to-postgres/src/main/kotlin/UploadResultToPostgresCommand.kt @@ -125,6 +125,7 @@ class UploadResultToPostgresCommand( withDataBaseLock { if (!tableExists(tableName)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") SchemaUtils.createMissingTablesAndColumns(table) } } diff --git a/scanner/src/main/kotlin/provenance/PostgresNestedProvenanceStorage.kt b/scanner/src/main/kotlin/provenance/PostgresNestedProvenanceStorage.kt index 1b686725afb4d..6f91a85a3da2b 100644 --- a/scanner/src/main/kotlin/provenance/PostgresNestedProvenanceStorage.kt +++ b/scanner/src/main/kotlin/provenance/PostgresNestedProvenanceStorage.kt @@ -57,6 +57,7 @@ class PostgresNestedProvenanceStorage( withDataBaseLock { if (!tableExists(tableName)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") SchemaUtils.createMissingTablesAndColumns(table) } } diff --git a/scanner/src/main/kotlin/provenance/PostgresPackageProvenanceStorage.kt b/scanner/src/main/kotlin/provenance/PostgresPackageProvenanceStorage.kt index 1e2907e6d758b..3d63b45d755be 100644 --- a/scanner/src/main/kotlin/provenance/PostgresPackageProvenanceStorage.kt +++ b/scanner/src/main/kotlin/provenance/PostgresPackageProvenanceStorage.kt @@ -59,6 +59,7 @@ class PostgresPackageProvenanceStorage( withDataBaseLock { if (!tableExists(tableName)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") SchemaUtils.createMissingTablesAndColumns(table) } } diff --git a/scanner/src/main/kotlin/storages/PackageBasedPostgresStorage.kt b/scanner/src/main/kotlin/storages/PackageBasedPostgresStorage.kt index 3c86671352eef..0b103e3f09c61 100644 --- a/scanner/src/main/kotlin/storages/PackageBasedPostgresStorage.kt +++ b/scanner/src/main/kotlin/storages/PackageBasedPostgresStorage.kt @@ -78,6 +78,7 @@ class PackageBasedPostgresStorage( if (!tableExists(TABLE_NAME)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") createMissingTablesAndColumns(ScanResults) createIdentifierAndScannerVersionIndex() diff --git a/scanner/src/main/kotlin/storages/ProvenanceBasedPostgresStorage.kt b/scanner/src/main/kotlin/storages/ProvenanceBasedPostgresStorage.kt index 50c6403a03039..9ac551991bf1c 100644 --- a/scanner/src/main/kotlin/storages/ProvenanceBasedPostgresStorage.kt +++ b/scanner/src/main/kotlin/storages/ProvenanceBasedPostgresStorage.kt @@ -71,6 +71,7 @@ class ProvenanceBasedPostgresStorage( withDataBaseLock { if (!tableExists(tableName)) { checkDatabaseEncoding() + @Suppress("DEPRECATION") SchemaUtils.createMissingTablesAndColumns(table) } }