Add PhotoDB init option skip_version_check.
This commit is contained in:
parent
d85d911b22
commit
44d1fb2fff
1 changed files with 3 additions and 1 deletions
|
@ -1078,6 +1078,7 @@ class PhotoDB(
|
|||
*,
|
||||
create=True,
|
||||
ephemeral=False,
|
||||
skip_version_check=False,
|
||||
):
|
||||
super().__init__()
|
||||
|
||||
|
@ -1120,6 +1121,7 @@ class PhotoDB(
|
|||
self.sql = sqlite3.connect(self.database_filepath.absolute_path)
|
||||
|
||||
if existing_database:
|
||||
if not skip_version_check:
|
||||
self._check_version()
|
||||
else:
|
||||
self._first_time_setup()
|
||||
|
|
Loading…
Reference in a new issue