CRM-8894 Allow an additional level of version numbering

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.4
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Attached patch will allow civicrm versions of the format "3.4.4.2"

      This has been very useful for developing an extension to civicrm core, in order to run proper db migration on our test server for example.

        Attachments

          Activity

          [CRM-8894] Allow an additional level of version numbering
          Adam Wight added a comment -

          recover the second capture group:

          Index: CRM/Upgrade/Form.php
          ===================================================================
          — CRM/Upgrade/Form.php (revision 36319)
          +++ CRM/Upgrade/Form.php (working copy)
          @@ -252,7 +252,7 @@
          array(dirname(_FILE_), 'Incremental', 'sql') );
          $sqlFiles = scandir($sqlDir);

          • $sqlFilePattern = '/^(\d {1,2}\.\d{1,2}

            \.(\d

            {1,2}\.)?(\d{1,2}

            |\w

            {4,7}))\.(my)?sql(\.tpl)?$/i';
            + $sqlFilePattern = '/^((\d{1,2}\.\d{1,2})\.(\d{1,2}\.)?(\d{1,2}|\w{4,7}

            ))\.(my)?sql(\.tpl)?$/i';
            foreach ($sqlFiles as $file) {
            if ( preg_match($sqlFilePattern, $file, $matches) ) {
            if ( $matches[2] == '4.0' ) {

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Adam Wight

              Dates

              • Created:
                Updated:
                Resolved: