Skip to content

Commit

Permalink
Dev Added wiping of survey groups to demo command
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 27, 2022
1 parent 832bc4d commit c6fff93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/commands/DemomodeCommand.php
Expand Up @@ -82,6 +82,10 @@ private function resetDatabase()
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "delete from {{surveys_groupsettings}} where gsid>1";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "update {{surveys_groupsettings}} set template = 'fruity' where gsid=0";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "update {{surveys_groupsettings}} set template = 'inherit' where gsid=1";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "delete from {{surveys_groups}} where gsid>1";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "delete from {{users}} where uid<>1";
Expand Down

0 comments on commit c6fff93

Please sign in to comment.