Add PhotoDB init option skip_version_check.

This commit is contained in:
voussoir 2018-03-13 02:25:04 -07:00
parent d85d911b22
commit 44d1fb2fff

View file

@ -1078,6 +1078,7 @@ class PhotoDB(
*, *,
create=True, create=True,
ephemeral=False, ephemeral=False,
skip_version_check=False,
): ):
super().__init__() super().__init__()
@ -1120,6 +1121,7 @@ class PhotoDB(
self.sql = sqlite3.connect(self.database_filepath.absolute_path) self.sql = sqlite3.connect(self.database_filepath.absolute_path)
if existing_database: if existing_database:
if not skip_version_check:
self._check_version() self._check_version()
else: else:
self._first_time_setup() self._first_time_setup()