2013022000-1.9.0-datadir_dates_to_guids-efb02ff11b9d6444.php 772 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Elgg 1.9.0 upgrade 2013022000
  4. * datadir_dates_to_guids
  5. *
  6. * Registers an upgrade object that will be used to rewrite the structure of
  7. * the Elgg data directory. The new structure will have the directories named
  8. * by GUIDs instead of creation dates.
  9. *
  10. * See file actions/admin/upgrades/upgrade_comments.php for details.
  11. */
  12. $upgrade = new \ElggUpgrade();
  13. $path = "admin/upgrades/datadirs";
  14. // Create the upgrade if one with the same URL doesn't already exist
  15. if (!$upgrade->getUpgradeFromPath($path)) {
  16. $upgrade->setPath($path);
  17. $upgrade->title = 'Data directory upgrade';
  18. $upgrade->description = 'Data directory structure has been improved in Elgg 1.9 and it requires a migration. Run this upgrade to complete the migration.';
  19. $upgrade->save();
  20. }