yii\db\Migration::safeUp PHP Метод

safeUp() публичный Метод

This method differs from Migration::up in that the DB logic implemented here will be enclosed within a DB transaction. Child classes may implement this method instead of Migration::up if the DB logic needs to be within a transaction.
public safeUp ( ) : boolean
Результат boolean return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.
    public function safeUp()
    {
    }