Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #9120: Migration issue from 1.90 to 2.05 when using Postgres
  • Loading branch information
c-schmitz committed Jul 25, 2014
1 parent 9767c0f commit eaee705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -509,7 +509,8 @@ function db_upgrade_all($iOldDBVersion) {
alterColumn('{{questions}}','parent_qid','integer',false ,'0');
alterColumn('{{questions}}','title',"{$sVarchar}(20)",false , '');
alterColumn('{{questions}}','question',"text",false);
try{ $oDB->createCommand()->dropIndex('questions_idx4','{{questions}}');} catch(Exception $e){};
try { setTransactionBookmark(); $oDB->createCommand()->dropIndex('questions_idx4','{{questions}}'); } catch(Exception $e) { rollBackToTransactionBookmark();}

alterColumn('{{questions}}','type',"{$sVarchar}(1)",false , 'T');
try{ $oDB->createCommand()->createIndex('questions_idx4','{{questions}}','type');} catch(Exception $e){};
alterColumn('{{questions}}','other',"{$sVarchar}(1)",false , 'N');
Expand Down

0 comments on commit eaee705

Please sign in to comment.