Back to bricks list
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

SqlMigrator

This object is to call sql migration script using peewee

Attributes
migrator: MySQLMigrator
Functions
__INIT__

Initialize self. See help(type(self)) for accurate signature.

db : DatabaseProxy
ADD_COLUMN_IF_NOT_EXISTS
model_type : Type
field : Field
column_name : str
Return type : bool
ADD_INDEX_IF_NOT_EXISTS
model_type : Type
index_name : str
columns : List
unique : bool - False
Return type : bool
ADD_MIGRATION
operation : Any
ALTER_COLUMN_TYPE
model_type : Type
field_name : str
field : Field
DROP_COLUMN_IF_EXISTS
model_type : Type
column_name : str
Return type : bool
DROP_INDEX_IF_EXISTS
model_type : Type
index_name : str
Return type : bool
MIGRATE
RENAME_COLUMN_IF_EXISTS
model_type : Type
old_name : str
new_name : str
Return type : bool
RENAME_TABLE_IF_EXISTS
model_type : Type
old_name : str
Return type : bool
DROP_TABLE_IF_EXISTS - @classmethod
db : DatabaseProxy
model_type : Type
Return type : bool
RENAME_PROCESS_TYPING_NAME - @classmethod
db : DatabaseProxy
old_typing_name : str
new_typing_name : str
RENAME_RESOURCE_TYPING_NAME - @classmethod
db : DatabaseProxy
old_typing_name : str
new_typing_name : str