#!/usr/bin/env php get('horde_dir', null, 'pear.horde.org') . '/turba/'; } require_once $baseDir . 'lib/Application.php'; Horde_Registry::appInit('turba', array('cli' => true)); require_once $baseDir . 'migration/3_turba_upgrade_sqlng.php'; $db = $injector->getInstance('Horde_Db_Adapter'); $migration = new TurbaUpgradeSqlng($db); $delete = $cli->prompt('Delete existing shares from the NEW backend before migrating the OLD backend? This should be done to avoid duplicate entries or primary key collisions in the storage backend from earlier migrations.', array('y' => 'Yes', 'n' => 'No'), 'n'); if ($delete == 'y' || $delete == 'Y') { $db->delete('DELETE FROM turba_sharesng'); $db->delete('DELETE FROM turba_sharesng_users'); $db->delete('DELETE FROM turba_sharesng_groups'); } $migration->dataUp();