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

Conditionals in migrations should be able to call tools

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.2.1
    • None
    • Update system
    • 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

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

            Dates

              Created:
              Updated: