From c6fff93037d6e72984be82cbfbf209abc2116096 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Wed, 27 Apr 2022 10:38:47 +0200 Subject: [PATCH] Dev Added wiping of survey groups to demo command --- application/commands/DemomodeCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/commands/DemomodeCommand.php b/application/commands/DemomodeCommand.php index 2728df59304..6195adc3968 100644 --- a/application/commands/DemomodeCommand.php +++ b/application/commands/DemomodeCommand.php @@ -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";