Skip to content

Commit

Permalink
[DB] remove static getMigrations method in favor of accessing the db …
Browse files Browse the repository at this point in the history
…directly for migrations.
  • Loading branch information
agrosner committed Feb 21, 2021
1 parent e9e2651 commit a580b5f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/src/main/kotlin/com/dbflow5/config/FlowManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,6 @@ object FlowManager {
private fun <T : Any> getQueryModelAdapterOrNull(modelClass: Class<T>): RetrievalAdapter<T>? =
getDatabaseForTable(modelClass).getQueryModelAdapterForQueryClass(modelClass)

/**
* @param databaseName The name of the database. Will throw an exception if the databaseForTable doesn't exist.
* @return The map of migrations for the specified database.
*/
@JvmStatic
internal fun getMigrations(databaseName: String): Map<Int, List<Migration>> =
getDatabase(databaseName).migrations

/**
* Checks a standard database helper for integrity using quick_check(1).
*
Expand Down

0 comments on commit a580b5f

Please sign in to comment.