mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user