Changeset 255

Show
Ignore:
Timestamp:
12/05/07 21:34:35 (13 years ago)
Author:
exi
Message:

Update for installer, drop some tables instead of fixing them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/install/install_step40.php

    r254 r255  
    5151$db = mysql_connect($_SESSION['sql']['host'], $_SESSION['sql']['user'], $_SESSION['sql']['pass']); 
    5252mysql_select_db($_SESSION['sql']['db']); 
     53 
     54echo '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'); 
     56foreach ($dropdata as $table) 
     57{ 
     58    echo $table.' '; 
     59    mysql_query("drop table ".$table); 
     60} 
     61echo 'done<br/>'; 
     62 
    5363$result = mysql_query('show tables'); 
    5464while ($row = mysql_fetch_row($result))