ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
migrateto21.php File Reference

Go to the source code of this file.

Variables

if($argc< 2) $paths
 
foreach($paths as $path) $dsn = $argv[1]
 
 $user = isset($argv[2]) ? $argv[2] : null
 
 $pass = isset($argv[3]) ? $argv[3] : null
 
 $pdo = new PDO($dsn, $user, $pass)
 
 $driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME)
 
 switch ( $driver)
 
 $addUid = false
 
 try
 
 $row = $result->fetch(\PDO::FETCH_ASSOC)
 
if(! $row) elseif(array_key_exists('uid', $row)) else
 
catch(Exception $e) if ( $addUid)
 

Variable Documentation

◆ $addUid

$addUid = false

Definition at line 83 of file migrateto21.php.

◆ $driver

$driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME)

Definition at line 67 of file migrateto21.php.

◆ $dsn

foreach ( $paths as $path) $dsn = $argv[1]

Definition at line 57 of file migrateto21.php.

◆ $pass

$pass = isset($argv[3]) ? $argv[3] : null

Definition at line 59 of file migrateto21.php.

◆ $paths

if ( $argc< 2) $paths
Initial value:
= [
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../../autoload.php',
]

Definition at line 45 of file migrateto21.php.

◆ $pdo

$pdo = new PDO($dsn, $user, $pass)

Definition at line 63 of file migrateto21.php.

◆ $row

$row = $result->fetch(\PDO::FETCH_ASSOC)

Definition at line 86 of file migrateto21.php.

◆ $user

$user = isset($argv[2]) ? $argv[2] : null

Definition at line 58 of file migrateto21.php.

◆ else

if (! $row) elseif (array_key_exists( 'uid', $row)) else
Initial value:
{
echo "2.0 schema detected.\n"

Definition at line 94 of file migrateto21.php.

◆ if

catch (Exception $e) if($addUid)

Definition at line 104 of file migrateto21.php.

◆ switch

switch
Initial value:
{
$t->data['usestorage'] = false

Definition at line 69 of file migrateto21.php.

◆ try

try
Initial value:
{
$result = $pdo->query('SELECT * FROM calendarobjects LIMIT 1')
$result
$pdo
Definition: migrateto21.php:63

Definition at line 84 of file migrateto21.php.