Changeset 27a96a4 in github


Ignore:
Timestamp:
Aug 10, 2010 2:32:50 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
b6244d5
Parents:
ecc28ce
Message:
  • Fix path to SQL files when using pgsql/mysqli/sqlsrv drivers (#1486902)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r3c9d9aa r27a96a4  
    33 
    44- Improve handling of single-part messages with bogus BODYSTRUCTURE (#1486898) 
     5- Fix path to SQL files when using pgsql/mysqli/sqlsrv drivers (#1486902) 
    56 
    67RELEASE 0.4 
  • bin/update.sh

    r2491c62 r27a96a4  
    115115    } 
    116116    else if ($RCI->db_schema_check($DB, false)) { 
    117       $updatefile = INSTALL_PATH . 'SQL/' . $DB->db_provider . '.update.sql'; 
     117      $db_map = array('pgsql' => 'postgres', 'mysqli' => 'mysql', 'sqlsrv' => 'mssql'); 
     118      $updatefile = INSTALL_PATH . 'SQL/' . (isset($db_map[$DB->db_provider]) ? $db_map[$DB->db_provider] : $DB->db_provider) . '.update.sql'; 
    118119      echo "WARNING: Database schema needs to be updated!\n"; 
    119120      echo "Open $updatefile and execute all queries that are superscribed with the currently installed version number\n"; 
  • installer/test.php

    r8062c04 r27a96a4  
    167167    else if ($RCI->db_schema_check($DB, $update = !empty($_POST['updatedb']))) { 
    168168        $RCI->fail('DB Schema', "Database schema differs"); 
    169         $updatefile = INSTALL_PATH . 'SQL/' . $DB->db_provider . '.update.sql'; 
     169        $db_map = array('pgsql' => 'postgres', 'mysqli' => 'mysql', 'sqlsrv' => 'mssql'); 
     170        $updatefile = INSTALL_PATH . 'SQL/' . (isset($db_map[$DB->db_provider]) ? $db_map[$DB->db_provider] : $DB->db_provider) . '.update.sql'; 
    170171        echo '<p class="warning">Please manually execute the SQL statements from '.$updatefile.' on your database.<br/>'; 
    171172        echo 'See comments in the file and execute queries that are superscribed with the currently installed version number.</p>'; 
Note: See TracChangeset for help on using the changeset viewer.