Replace self.sql.commit with self.commit.

This commit is contained in:
voussoir 2021-09-30 15:08:46 -07:00
parent 72be07bdb7
commit a3f7c796c4
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1945,12 +1945,12 @@ class PhotoDB(
def _first_time_setup(self):
self.log.info('Running first-time database setup.')
self.sql_executescript(constants.DB_INIT)
self.sql.commit()
self.commit()
def _load_pragmas(self):
self.log.debug('Reloading pragmas.')
self.sql_executescript(constants.DB_PRAGMAS)
self.sql.commit()
self.commit()
# Will add -> PhotoDB when forward references are supported
@classmethod