db\Migration safeDown()

safeDown() public method

This method contains the logic to be executed when removing this migration.

This method differs from down() in that the DB logic implemented here will be enclosed within a DB transaction. Child classes may implement this method instead of down() if the DB logic needs to be within a transaction.

public boolean safeDown ( )
return boolean

Return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.

doc_Yii
2016-10-30 16:58:13
Comments
Leave a Comment

Please login to continue.