Migration
| Method Summary | |
public any |
init()
Initializes the newly created object of class Migration |
public any |
create_table(string tableName, struct columns, [string orderedColumnsList=""])
|
public any |
down()
This method must be overridden by the derivative components, and it should be used to drop the table |
public any |
drop_table(string tableName)
Drops the specified table |
public any |
up()
This method must be overridden by the derivative components, and it should be used to create the table |
| Method Detail |
public any create_table(string tableName, struct columns, [string orderedColumnsList=""])
string tableName - The name of the table to be createdstruct columns - A structure where the keys are the column names, and the values are their types.[string orderedColumnsList=""] - A list of the columns' names in the order in which they should be created.public any down()
public any drop_table(string tableName)
string tableName - The name of the table to be droppedpublic any init()
public any up()