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
463f8002
Commit
463f8002
authored
Feb 08, 2017
by
Peter van 't Hof
Browse files
Rename column
parent
cc77bd23
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 @
463f8002
...
...
@@ -99,22 +99,22 @@ object Schema {
}
val
settings
=
TableQuery
[
Settings
]
case
class
File
(
runId
:
Int
,
pipelineId
:
Int
,
moduleId
:
Option
[
Int
],
sampleId
:
Option
[
Int
],
library
:
Option
[
Int
],
name
:
String
,
path
:
String
,
md5
:
String
,
link
:
Boolean
,
size
:
Long
)
case
class
File
(
runId
:
Int
,
pipelineId
:
Int
,
moduleId
:
Option
[
Int
],
sampleId
:
Option
[
Int
],
library
:
Option
[
Int
],
key
:
String
,
path
:
String
,
md5
:
String
,
link
:
Boolean
,
size
:
Long
)
class
Files
(
tag
:
Tag
)
extends
Table
[
File
](
tag
,
"Files"
)
{
def
runId
=
column
[
Int
](
"runId"
)
def
pipelineId
=
column
[
Int
](
"pipelineId"
)
def
moduleId
=
column
[
Option
[
Int
]](
"moduleId"
)
def
sampleId
=
column
[
Option
[
Int
]](
"sampleId"
)
def
libraryId
=
column
[
Option
[
Int
]](
"libraryId"
)
def
name
=
column
[
String
](
"
name
"
)
def
key
=
column
[
String
](
"
key
"
)
def
path
=
column
[
String
](
"path"
)
def
md5
=
column
[
String
](
"md5"
)
def
link
=
column
[
Boolean
](
"link"
,
O
.
Default
(
false
))
def
size
=
column
[
Long
](
"size"
)
def
*
=
(
runId
,
pipelineId
,
moduleId
,
sampleId
,
libraryId
,
name
,
path
,
md5
,
link
,
size
)
<>
(
File
.
tupled
,
File
.
unapply
)
def
*
=
(
runId
,
pipelineId
,
moduleId
,
sampleId
,
libraryId
,
key
,
path
,
md5
,
link
,
size
)
<>
(
File
.
tupled
,
File
.
unapply
)
def
idx
=
index
(
"idx_files"
,
(
runId
,
pipelineId
,
sampleId
,
libraryId
,
name
),
unique
=
true
)
def
idx
=
index
(
"idx_files"
,
(
runId
,
pipelineId
,
sampleId
,
libraryId
,
key
),
unique
=
true
)
}
val
files
=
TableQuery
[
Files
]
...
...
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