Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15375

Conditionals in migrations should be able to call tools

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 3.2.1
    • Update system
    • None

      Currently the first "argument" in an conditional in a migration must be a boolean value. (Well it doesn't has to but it will be cast to a boolean)

      Some people (even ourselves) however, confuse this with the possibility to make a call to one of the tools. Like:

       

      array('if', array(
          array('module.exists', ...),
          array('module.remove', ...),
      ),
      

       

      This will currently always be true since it's a non-empty array.

       

            Marc Marc
            Elsensee Oliver Schramm [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: