Stud.IP  4.2 Revision
web_migrate.php File Reference

Variables

if(empty($_SESSION['_language'])) $_language_path = init_i18n($_SESSION['_language'])
 
 $path = $GLOBALS['STUDIP_BASE_PATH'].'/db/migrations'
 
 $verbose = true
 
 $target = NULL
 
 $lock = new FileLock('web-migrate')
 
if($lock->isLocked() &&Request::int('release_lock')) if(Request::int('target')) $version = new DBSchemaVersion('studip')
 
 $migrator = new Migrator($path, $version, $verbose)
 
if(Request::submitted('start')) $current = $version->get()
 
 $migrations = $migrator->relevant_migrations($target)
 
 $template = $template_factory->open('web_migrate')
 

Variable Documentation

◆ $_language_path

if (empty( $_SESSION[ '_language'])) $_language_path = init_i18n($_SESSION['_language'])

◆ $current

if (Request::submitted( 'start')) $current = $version->get()

◆ $lock

$lock = new FileLock('web-migrate')

◆ $migrations

$migrations = $migrator->relevant_migrations($target)

◆ $migrator

$migrator = new Migrator($path, $version, $verbose)

◆ $path

$path = $GLOBALS['STUDIP_BASE_PATH'].'/db/migrations'

◆ $target

$target = NULL

◆ $template

$template = $template_factory->open('web_migrate')

◆ $verbose

$verbose = true

◆ $version

if ( $lock->isLocked() &&Request::int( 'release_lock')) if (Request::int( 'target')) $version = new DBSchemaVersion('studip')