refactor: remove SQLite compatibility check for column cleanup in DB migration script

This commit is contained in:
Junyan Qin
2026-01-03 15:43:40 +08:00
parent 840fa39979
commit ba06555078

View File

@@ -251,9 +251,6 @@ class DBMigrateModelProviderRefactor(migration.DBMigration):
async def _cleanup_columns(self):
"""Remove deprecated columns from model tables"""
# SQLite doesn't support DROP COLUMN easily, so we skip for SQLite
if self.ap.persistence_mgr.db.name != 'postgresql':
return
llm_columns = await self._get_columns('llm_models')
deprecated_llm_cols = ['requester', 'requester_config', 'api_keys', 'description', 'source', 'space_model_id']