Changeset 2994:c8206c9d865d
- Timestamp:
 - 04/20/15 11:08:22 (11 years ago)
 - Branch:
 - default
 - Files:
 - 
          
- 2 edited
 
- 
          admin/install/wizard.php (modified) (2 diffs)
 - 
          inc/dbschema/upgrade.php (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
admin/install/wizard.php
r2792 r2994 66 66 try 67 67 { 68 if ($DBDRIVER == 'sqlite') { 69 if (strpos($DBNAME, '/') === false) { 70 $sqlite_db_directory = dirname(DC_RC_PATH).'/../db/'; 71 files::makeDir($sqlite_db_directory,true); 72 73 # Can we write sqlite_db_directory ? 74 if (!is_writable($sqlite_db_directory)) { 75 throw new Exception(sprintf(__('Cannot write "%s" directory.'),path::real($sqlite_db_directory,false))); 76 } 77 $DBNAME = $sqlite_db_directory.$DBNAME; 78 } 79 } 80 68 81 # Tries to connect to database 69 82 try { … … 182 195 '<form action="wizard.php" method="post">'. 183 196 '<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 184 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('PostgreSQL')=>'pgsql'),$DBDRIVER).'</p>'.197 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'. 185 198 '<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 186 199 form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'.  - 
        
inc/dbschema/upgrade.php
r2950 r2994 26 26 { 27 27 if ($core->con->driver() == 'sqlite') { 28 throw new Exception(__('SQLite Database Schema cannot be upgraded.'));28 return false; // Need to find a way to upgrade sqlite database 29 29 } 30 30  
Note: See TracChangeset
          for help on using the changeset viewer.
      