aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrations/6.3.1_central_evaluations.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrations/6.3.1_central_evaluations.php b/db/migrations/6.3.1_central_evaluations.php
index 03d0067..eaf4dc0 100644
--- a/db/migrations/6.3.1_central_evaluations.php
+++ b/db/migrations/6.3.1_central_evaluations.php
@@ -15,6 +15,8 @@ class CentralEvaluations extends Migration
ADD COLUMN `is_template` tinyint(1) NOT NULL DEFAULT 0 AFTER `user_id`,
ADD COLUMN `template_is_enabled` tinyint(1) DEFAULT NULL AFTER `is_template`,
ADD COLUMN `template_id` char(32) DEFAULT NULL AFTER `questionnaire_id`,
+ ADD COLUMN `result_visible_for` enum('autor','tutor','dozent') DEFAULT NULL,
+ ADD COLUMN `minimum_responses` int(11) unsigned NOT NULL DEFAULT 0,
ADD KEY `template_id` (`template_id`)
");
@@ -176,7 +178,9 @@ class CentralEvaluations extends Migration
ALTER TABLE `questionnaires`
DROP COLUMN `is_template`,
DROP COLUMN `template_is_enabled`,
- DROP COLUMN `template_id`
+ DROP COLUMN `template_id`,
+ DROP COLUMN `result_visible_for`,
+ DROP COLUMN `minimum_responses`
");
DBManager::get()->exec("