Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
659e18de
Commit
659e18de
authored
Jan 29, 2017
by
Peter van 't Hof
Browse files
Added indexes
parent
ba927383
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/summary/db/Schema.scala
View file @
659e18de
...
...
@@ -3,7 +3,6 @@ package nl.lumc.sasc.biopet.utils.summary.db
import
java.io.File
import
java.sql.Blob
import
nl.lumc.sasc.biopet.utils.Logging
import
slick.driver.H2Driver.api._
import
scala.concurrent.Await
...
...
@@ -62,10 +61,12 @@ object Schema {
val
librariesRuns
=
TableQuery
[
LibrariesRuns
]
class
PipelineNames
(
tag
:
Tag
)
extends
Table
[(
Int
,
String
)](
tag
,
"PipelineNames"
)
{
def
id
=
column
[
Int
](
"id"
,
O
.
PrimaryKey
)
def
id
=
column
[
Int
](
"id"
,
O
.
PrimaryKey
,
O
.
AutoInc
)
def
name
=
column
[
String
](
"name"
)
def
*
=
(
id
,
name
)
def
idx
=
index
(
"idx_pipeline_names"
,
(
name
),
unique
=
true
)
}
val
pipelineNames
=
TableQuery
[
PipelineNames
]
...
...
@@ -74,6 +75,8 @@ object Schema {
def
name
=
column
[
String
](
"name"
)
def
*
=
(
id
,
name
)
def
idx
=
index
(
"idx_module_names"
,
(
name
),
unique
=
true
)
}
val
moduleNames
=
TableQuery
[
ModuleNames
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment