From 547cbd5fcc44187d402de1eafe43bf6db08f3a78 Mon Sep 17 00:00:00 2001 From: Chantal Loncle <82039410+bog-walk@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:01:52 -0400 Subject: [PATCH] fix: EXPOSED-83 createMissingTablesAndColumns not detecting missing PK Update KDocs to match new function parameters. --- .../main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt index 5762dd9b27..8e5a163478 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/Default.kt @@ -928,7 +928,7 @@ interface DatabaseDialect { /** Returns a map with all the defined indices in each of the specified [tables]. */ fun existingIndices(vararg tables: Table): Map> = emptyMap() - /** Returns a map with the primary key name and defining columns in each of the specified [tables]. */ + /** Returns a map with the primary key metadata in each of the specified [tables]. */ fun existingPrimaryKeys(vararg tables: Table): Map = emptyMap() /** Returns `true` if the dialect supports `SELECT FOR UPDATE` statements, `false` otherwise. */ @@ -957,7 +957,7 @@ interface DatabaseDialect { /** Returns the SQL command that modifies the specified [column]. */ fun modifyColumn(column: Column<*>, columnDiff: ColumnDiff): List - /** Returns the SQL command that adds a primary key to an existing table specified [tableName]. */ + /** Returns the SQL command that adds a primary key specified [pkName] to an existing [table]. */ fun addPrimaryKey(table: Table, pkName: String?, vararg pkColumns: Column<*>): String fun createDatabase(name: String) = "CREATE DATABASE IF NOT EXISTS ${name.inProperCase()}"