Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/install/update/4.5.3/update.php
<?php 
 include ('../../../../include/init.inc');


 if (function_exists('ob_end_flush()')) {ob_end_flush ();}
 includeNaPro('mversion,array');
 
  $update_success 	= true;

 /* Get currently installed version */
 $installed_version = version_normalize(version_get($sql_world,'software','napro'));
 /* Check here for desired version */
 $version_comp		= version_compare($installed_version,'4.5.3','>=');

/*
Feldänderungen :

mdocs:
	mdoc_update
	mdoc_create
	
mdoc_log:	
	mdl_date
	

melements:
add:	me_autoinc
add:	me_unique
add:	me_fkey_to
add: 	me_index
mnames:
add: 	mn_queu
*/
 
?>
<html>
<head><title>Activate Update 4.5.3</title></head>
<link href="../../../../include/netautor.css" rel="stylesheet" type="TEXT/CSS" media="screen" >
<script language="JavaScript">
<!--
function reloadChoice(){
	if (parent.frames['update_choice']) {
		parent.frames['update_choice'].document.location.href= 	parent.frames['update_choice'].document.location.href;
	}
}

//-->
</script>
<body bgcolor="White" text="Black"  leftmargin="1" topmargin="1">
<br>
<?php

	if ($version_comp==1){
		?>	<font class="setuptextokay">Version 4.5.3 allready installed</font>
			<script language="JavaScript">reloadChoice();</script>
			</body>
			</html>
		<?php
		exit();
	}
?>
<font class="setuplinktext">Start : <?php echo(date('d.m.Y H:i:s'));?></font>
<br>
<br>
<font class="setuptextokay"><br>Update Netautor tables (May take some time)</font>
<br>
<?

$new_column_def = array ( 	'name'=>'me_autoinc',
							'type'=>'int',
							'null'=>'NULL'			);
$sql_world->sql_alter_column('melements','me_autoinc',$new_column_def,'ADD');

$new_column_def = array ( 	'name'=>'me_unique',
							'type'=>'int',
							'null'=>'NULL'			);
$sql_world->sql_alter_column('melements','me_unique',$new_column_def,'ADD');

$new_column_def = array ( 	'name'=>'me_index',
							'type'=>'int',
							'null'=>'NULL'			);
$sql_world->sql_alter_column('melements','me_index',$new_column_def,'ADD');


$new_column_def = array ( 	'name'=>'me_fkey_to',
							'type'=>'varchar(128)',
							'null'=>'NULL'			);
$sql_world->sql_alter_column('melements','me_fkey_to',$new_column_def,'ADD');


$new_column_def = array ( 	
							'name'=>'mn_queu',
							'type'=>'int',
							'null'=>'NULL',	
							'default'=>'0'	);
$sql_world->sql_alter_column('mnames','mn_queu',$new_column_def,'ADD');



?>
<font class="setuptextokay"><br>Registring update informations</font><br>
<?php version_set($sql_world,'software','napro','4.5.3'); ?>

<br><font class="setuplinktext">End : <?php echo(date('d.m.Y H:i:s'));?></font><br>
<script language="JavaScript">reloadChoice();</script>
</body>
</html>
Return current item: Netautor Professional