db\Migration safeUp()

safeUp() public method

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

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

public boolean safeUp ( )
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:14
Comments
Leave a Comment

Please login to continue.