Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15375

Conditionals in migrations should be able to call tools

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: Update system
    • Labels:
      None

      Description

      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.

       

        Attachments

          Activity

            People

            • Assignee:
              Elsensee Oliver Schramm
              Reporter:
              Elsensee Oliver Schramm
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: