refine API token application (#2847)

### What problem does this PR solve?

#2846

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2024-10-15 15:47:40 +08:00
committed by GitHub
parent fcabdf7745
commit ce495e4e3e
3 changed files with 68 additions and 17 deletions

View File

@ -1052,4 +1052,11 @@ def migrate_db():
)
except Exception as e:
pass
try:
migrate(
migrator.alter_column_type('api_token', 'dialog_id',
CharField(max_length=32, null=True, index=True))
)
except Exception as e:
pass