ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
migrateto32.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
 
 $backupPostfix = time()
 
 $pdo = new PDO($dsn, $user, $pass)
 
 $driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME)
 
 switch ( $driver)
 
 $addValueType = false
 
 try
 
 $row = $result->fetch(\PDO::FETCH_ASSOC)
 
if(! $row) $columnCount = count($row)
 
if($columnCount===3) else
 
 $migrateCalendars = true
 
catch(Exception $e) if ( $migrateCalendars)
 

Variable Documentation

◆ $addValueType

$addValueType = false

Definition at line 85 of file migrateto32.php.

◆ $backupPostfix

$backupPostfix = time()

Definition at line 61 of file migrateto32.php.

◆ $columnCount

if (! $row) $columnCount = count($row)

◆ $driver

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

Definition at line 69 of file migrateto32.php.

◆ $dsn

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

Definition at line 57 of file migrateto32.php.

◆ $migrateCalendars

$migrateCalendars = true

Definition at line 210 of file migrateto32.php.

◆ $pass

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

Definition at line 59 of file migrateto32.php.

◆ $paths

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

Definition at line 45 of file migrateto32.php.

◆ $pdo

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

Definition at line 65 of file migrateto32.php.

◆ $row

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

Definition at line 197 of file migrateto32.php.

◆ $user

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

Definition at line 58 of file migrateto32.php.

◆ else

if ( $columnCount===3) else
Initial value:
{
echo "The calendars table has " . $columnCount . " columns.\n"
if(! $row) $columnCount

Definition at line 208 of file migrateto32.php.

◆ if

catch (Exception $e) if($migrateCalendars)

Definition at line 218 of file migrateto32.php.

◆ switch

switch($driver)

Definition at line 71 of file migrateto32.php.

◆ try

catch (Exception $e) try
Initial value:
{
$result = $pdo->query('SELECT * FROM calendarinstances LIMIT 1')
$result
$pdo
Definition: migrateto32.php:65

Definition at line 86 of file migrateto32.php.