Closes #1
Based on open_database_with_migration.dart new version of database every time will be equal migrations.length + 1.
Situation when we'll perform migration to the version lesser than migrations.length + 1 looks impossible, because of the way we determine the current version.
In this case assertion should check it in the manner suggested by the current PR.
Closes #1
Based on open_database_with_migration.dart new version of database every time will be equal migrations.length + 1. Situation when we'll perform migration to the version lesser than migrations.length + 1 looks impossible, because of the way we determine the current version.
In this case assertion should check it in the manner suggested by the current PR.