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 3713129 commit 832bc4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/commands/DemomodeCommand.php
Expand Up @@ -80,6 +80,10 @@ private function resetDatabase()
//Now delete the basics in all other tables
$actquery = "delete from {{permissions}} where uid<>1";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "delete from {{surveys_groupsettings}} 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";
Yii::app()->db->createCommand($actquery)->execute();
$actquery = "update {{users}} set lang='en'";
Expand Down

0 comments on commit 832bc4d

Please sign in to comment.