aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.288_tic9898_add_course_wizard_step.php
blob: cf3e9560f4ba5335617fc71badd521aa8ad2dbbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php


class Tic9898AddCourseWizardStep extends Migration
{
    public function up()
    {
        $db = DBManager::get();

        $db->exec(
            "INSERT IGNORE INTO `coursewizardsteps`
            (`id`, `name`, `classname`, `number`, `enabled`, `mkdate`, `chdate`)
            VALUES
            (MD5('StudyAreasLVGroupsCombinedWizardStep'), 'Studienbereich oder LV-Gruppe', 'StudyAreasLVGroupsCombinedWizardStep', '3', '0', UNIX_TIMESTAMP(), UNIX_TIMESTAMP())"
        );
    }


    public function down()
    {
        $db = DBManager::get();

        $db->exec(
            "DELETE FROM `StudyAreasLVGroupsCombinedWizardStep`
            WHERE `id` = MD5('')"
        );
    }


    public function description()
    {
        return 'Adds a new course wizard step to assign at least a study area or a LV group.';
    }
}