mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 14:33:06 +01:00
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:
parent
d06b064b6b
commit
524c5212e0
2 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue