Skip to content

Commit

Permalink
DEV: changes in updateDb, set new attribute to NOT NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Trischi80 committed Apr 3, 2020
1 parent e45a7ef commit 4ea6c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/update/updatedb_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3069,8 +3069,8 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
if($iOldDBVersion < 426){
$oTransaction = $oDB->beginTransaction();

$oDB->createCommand()->addColumn('{{surveys_groupsettings}}', 'ipanonymize', "string(1) NULL default 'N'");
$oDB->createCommand()->addColumn('{{surveys}}', 'ipanonymize', "string(1) NULL default 'N'");
$oDB->createCommand()->addColumn('{{surveys_groupsettings}}', 'ipanonymize', "string(1) NOT NULL default 'N'");
$oDB->createCommand()->addColumn('{{surveys}}', 'ipanonymize', "string(1) NOT NULL default 'N'");

//all groups (except default group gsid=0), must have inheritance value
$oDB->createCommand()->update('{{surveys_groupsettings}}',array('ipanonymize' => 'I'), 'gsid<>0');
Expand Down

0 comments on commit 4ea6c68

Please sign in to comment.