Skip to content

Commit

Permalink
Fixed issue: Problems on upgrade from a previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 21, 2012
1 parent cf457d9 commit 738dbe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -1659,7 +1659,7 @@ function dropColumn($sTableName, $sColumnName)
$sDBDriverName=Yii::app()->db->getDriverName();
if ($sDBDriverName=='mysqli') $sDBDriverName='mysql';
if ($sDBDriverName=='sqlsrv') $sDBDriverName='mssql';
if ($sDBDriverName='mssql')
if ($sDBDriverName=='mssql')
{
dropDefaultValueMSSQL($sColumnName,$sTableName);
}
Expand All @@ -1674,7 +1674,7 @@ function createTable($sTableName, $aColumns, $aOptions=null)
$sDBDriverName=Yii::app()->db->getDriverName();
if ($sDBDriverName=='mysqli') $sDBDriverName='mysql';
if ($sDBDriverName=='sqlsrv') $sDBDriverName='mssql';
if ($sDBDriverName='mssql')
if ($sDBDriverName=='mssql')
{
foreach ($aColumns as $sName=>&$sType)
{
Expand All @@ -1690,7 +1690,7 @@ function addColumn($sTableName, $sColumn, $sType)
$sDBDriverName=Yii::app()->db->getDriverName();
if ($sDBDriverName=='mysqli') $sDBDriverName='mysql';
if ($sDBDriverName=='sqlsrv') $sDBDriverName='mssql';
if ($sDBDriverName='mssql')
if ($sDBDriverName=='mssql')
{
$sType=str_replace('text','varchar(max)',$sType);
$sType=str_replace('binary','text',$sType);
Expand Down
2 changes: 1 addition & 1 deletion application/views/installer/dbconfig_view.php
Expand Up @@ -41,7 +41,7 @@
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbname', array('label' => $clang->gT("Database name"))); ?></b><br />
<div class="description-field"><?php $clang->eT("If you provide an existing database name make sure the database does not contain old tables of LimeSurvey."); ?></div>
<div class="description-field"><?php $clang->eT("If the database not exists it will be created (necessrary permission provided). If there are existing tables then the LimeSurvey database will be upgraded automatically after installation if necessary."); ?></div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activeTextField($model, 'dbname', array('required' => 'required')) ?></td>
</tr>
Expand Down

0 comments on commit 738dbe3

Please sign in to comment.