mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(db): decouple from SqliteDatabase
This commit is contained in:
@ -73,7 +73,7 @@ class ApiDependencies:
|
||||
image_files = DiskImageFileStorage(f"{output_folder}/images")
|
||||
|
||||
db = SqliteDatabase(config, logger)
|
||||
migrator = SQLiteMigrator(db=db, image_files=image_files)
|
||||
migrator = SQLiteMigrator(database=db.database, lock=db.lock, image_files=image_files, logger=logger)
|
||||
migrator.register_migration(migration_1)
|
||||
migrator.register_migration(migration_2)
|
||||
migrator.run_migrations()
|
||||
|
Reference in New Issue
Block a user