This object is to call sql migration script using peewee
Attributes
migrator: MySQLMigrator
Functions
Initialize self. See help(type(self)) for accurate signature.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
db | DatabaseProxy |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
field | Field | ||
column_name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
index_name | str | ||
columns | List | ||
unique | bool | False |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
operation | Any |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
field_name | str | ||
field | Field |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
column_name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
index_name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
old_name | str | ||
new_name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
model_type | Type | ||
old_name | str |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
db | DatabaseProxy | ||
model_type | Type |
Return type:
bool |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
db | DatabaseProxy | ||
old_typing_name | str | ||
new_typing_name | str |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
db | DatabaseProxy | ||
old_typing_name | str | ||
new_typing_name | str |