Changeset 258

Show
Ignore:
Timestamp:
12/06/07 10:55:28 (13 years ago)
Author:
exi
Message:

Fix to not drop some tables everytime on upgrade.

Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • dev/install/install_step40.php

    r255 r258  
    5252mysql_select_db($_SESSION['sql']['db']); 
    5353 
    54 echo 'Dropping some tables...<br/>'; 
    55 $dropdata = explode(',', 'kb3_ships,kb3_ship_classes,kb3_item_types,kb3_regions,kb3_systems,kb3_system_jumps,kb3_item_locations,kb3_constellations,kb3_races'); 
    56 foreach ($dropdata as $table) 
    57 { 
    58     echo $table.' '; 
    59     mysql_query("drop table ".$table); 
    60 } 
    61 echo 'done<br/>'; 
     54if (!isset($_REQUEST['sub'])) 
     55{ 
     56    echo 'Dropping some tables...<br/>'; 
     57    $dropdata = explode(',', 'kb3_ships,kb3_ship_classes,kb3_item_types,kb3_regions,kb3_systems,kb3_system_jumps,kb3_item_locations,kb3_constellations,kb3_races'); 
     58    foreach ($dropdata as $table) 
     59    { 
     60        echo $table.' '; 
     61        mysql_query("drop table ".$table); 
     62    } 
     63    echo 'done<br/>'; 
     64} 
    6265 
    6366$result = mysql_query('show tables');