Add MasterXPubTable to list of DLCOracle tables (#3955)

* Add MasterXPubTable to list of DLCOracle tables

* Allow clean to be called by outside libraries
This commit is contained in:
benthecarman 2021-12-31 06:30:44 -06:00 committed by GitHub
parent d06b064b6b
commit 524c5212e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -184,7 +184,7 @@ trait DbManagement extends Logging {
*
* @see https://flywaydb.org/documentation/command/clean
*/
private[bitcoins] def clean(): Unit = {
def clean(): Unit = {
flyway.clean()
}
}

View file

@ -165,6 +165,10 @@ case class DLCOracleAppConfig(
private val masterXPubDAO: MasterXPubDAO = MasterXPubDAO()(ec, this)
private lazy val masterXPubTable: TableQuery[Table[_]] = {
masterXPubDAO.table
}
private lazy val rValueTable: TableQuery[Table[_]] = {
RValueDAO()(ec, appConfig).table
}
@ -178,7 +182,7 @@ case class DLCOracleAppConfig(
}
override def allTables: List[TableQuery[Table[_]]] =
List(rValueTable, eventTable, eventOutcomeTable)
List(masterXPubTable, rValueTable, eventTable, eventOutcomeTable)
/** @param migrations - The number of migrations we have run */
private def v2V3MigrationWorkaround(migrations: Int): Future[Unit] = {