Skip to content

Commit

Permalink
fix: EXPOSED-83 createMissingTablesAndColumns not detecting missing PK
Browse files Browse the repository at this point in the history
Update KDocs to match new function parameters.
  • Loading branch information
bog-walk committed Jul 20, 2023
1 parent 8a35dc5 commit 547cbd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Table, List<Index>> = 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<Table, PrimaryKeyMetadata?> = emptyMap()

/** Returns `true` if the dialect supports `SELECT FOR UPDATE` statements, `false` otherwise. */
Expand Down Expand Up @@ -957,7 +957,7 @@ interface DatabaseDialect {
/** Returns the SQL command that modifies the specified [column]. */
fun modifyColumn(column: Column<*>, columnDiff: ColumnDiff): List<String>

/** 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()}"
Expand Down

0 comments on commit 547cbd5

Please sign in to comment.