Skip to content

Commit

Permalink
Updated column
Browse files Browse the repository at this point in the history
  • Loading branch information
bskjon committed Apr 15, 2024
1 parent 20bf9bc commit 207e36e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import org.jetbrains.exposed.dao.id.IntIdTable
import org.jetbrains.exposed.sql.Column

object titles: IntIdTable() {
val collection: Column<String> = varchar("collection", 250)
val masterTitle: Column<String> = varchar("masterTitle", 250)
val title: Column<String> = varchar("title", 250)
val type: Column<Int> = integer("type").default(3)

init {
uniqueIndex(collection, title)
uniqueIndex(masterTitle, title, type)
}
}

0 comments on commit 207e36e

Please sign in to comment.