Update peewee-migrate to 0.14.x (#21243)

Replaces two functions calls, that were deprecated and aliases for the
new function name:

- Migrator.python -> Migration.run
- Migrator.change_column -> Migrator.change_field
This commit is contained in:
Martin Weinelt
2025-12-13 07:13:04 -07:00
committed by GitHub
parent 8ddcbf9a8d
commit dde02cadb2
33 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Some examples (model - class or model name)::
> Model = migrator.orm['model_name'] # Return model in current state by name
> migrator.sql(sql) # Run custom SQL
> migrator.python(func, *args, **kwargs) # Run python code
> migrator.run(func, *args, **kwargs) # Run python code
> migrator.create_model(Model) # Create a model (could be used as decorator)
> migrator.remove_model(model, cascade=True) # Remove a model
> migrator.add_fields(model, **fields) # Add fields to a model