Commit ba927383 authored by Peter van 't Hof's avatar Peter van 't Hof

Adding size and link to files

parent a5f4c0a0
......@@ -3,13 +3,7 @@ package nl.lumc.sasc.biopet.tools
import java.io.File
import nl.lumc.sasc.biopet.utils.summary.db.Schema
import slick.driver.H2Driver.api._
import scala.concurrent.ExecutionContext.Implicits.global
import nl.lumc.sasc.biopet.utils.{ConfigUtils, ToolCommand}
import scala.concurrent.Await
import scala.concurrent.duration.Duration
import nl.lumc.sasc.biopet.utils.{ ConfigUtils, ToolCommand }
/**
* Created by pjvanthof on 26/01/2017.
......
......@@ -108,7 +108,7 @@ object Schema {
}
val settings = TableQuery[Settings]
class Files(tag: Tag) extends Table[(Int, Int, Option[Int], Option[Int], Option[Int], String, String)](tag, "Files") {
class Files(tag: Tag) extends Table[(Int, Int, Option[Int], Option[Int], Option[Int], String, String, Boolean, Long)](tag, "Files") {
def pipelineId = column[Int]("pipelineId")
def runId = column[Int]("runId")
def moduleId = column[Option[Int]]("moduleId")
......@@ -116,8 +116,10 @@ object Schema {
def libraryId = column[Option[Int]]("libraryId")
def path = column[String]("path")
def md5 = column[String]("md5")
def link = column[Boolean]("link", O.Default(false))
def size = column[Long]("size")
def * = (pipelineId, runId, moduleId, sampleId, libraryId, path, md5)
def * = (pipelineId, runId, moduleId, sampleId, libraryId, path, md5, link, size)
def idx = index("idx_files", (pipelineId, runId, sampleId, libraryId, path), unique = true)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment