Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17453

ez4.4.0 - section_identifier update script 'updatesectionidentifier.php' not working

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0beta1
    • 4.4.0, 4.5.0alpha
    • Documentation, Upgrading
    • None

    Description

      I am upgrading a site form ez4.2.0 to ez4.4.0 on Linux with MYSQL.

      the upgrade script

      $PHP_CLI update/common/scripts/4.4/updatesectionidentifier.php -s $SITE_ACCESS
      

      does not work. It is not creating the missing section_identifier for existing sections.

      Why?

      I found out.
      After performing the db update script dbupdate-4.3.0-to-4.4.0.sql
      The ezsection/identifier values wher NULL not ''

      But the updatesectionidentifier.php ask for all value with ''. So the NULL value are not selected for update!

      To fix this you can add the sql update script

      from

      ALTER TABLE ezsection ADD identifier VARCHAR(255);
      

      to

      ALTER TABLE ezsection ADD identifier VARCHAR(255) DEFAULT '';
      

      => the ugradecheck in admin throws than a warning .... the dba file has to be updated, too

      or you have to update the php script

      Attachments

        Activity

          People

            chen chen
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: