Changeset 2815 for trunk/install


Ignore:
Timestamp:
Nov 1, 2008, 10:19:20 PM (15 years ago)
Author:
patdenice
Message:
  • bugs correction in upgrade_1.7.0.php.
  • only non-standard plugins are deactivated during upgrade.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/upgrade_1.7.0.php

    r2768 r2815  
    3434}
    3535
    36 define('PREFIX_TABLE', $prefixeTable);
    3736define('UPGRADES_PATH', PHPWG_ROOT_PATH.'install/db');
    3837
     
    6968      'id' => $upgrade_id,
    7069      'applied' => CURRENT_DATE,
    71       'description' => '[migration from 1.7.0 to '.RELEASE.'] not applied',
     70      'description' => '[migration from 1.7.0 to '.PHPWG_VERSION.'] not applied',
    7271      )
    7372    );
    7473}
    75 mass_inserts(
    76   '`'.UPGRADE_TABLE.'`',
    77   array_keys($inserts[0]),
    78   $inserts
    79   );
     74
     75if (!empty($inserts))
     76{
     77  mass_inserts(
     78    '`'.UPGRADE_TABLE.'`',
     79    array_keys($inserts[0]),
     80    $inserts
     81    );
     82}
    8083
    8184// +-----------------------------------------------------------------------+
     
    107110  (id, applied, description)
    108111  VALUES
    109   (\''.$upgrade_id.'\', NOW(), \'[migration from 1.7.0 to '.RELEASE.'] '.$upgrade_description.'\')
     112  (\''.$upgrade_id.'\', NOW(), \'[migration from 1.7.0 to '.PHPWG_VERSION.'] '.$upgrade_description.'\')
    110113;';
    111114  pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.