aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.193_tic6653_add_advanced_coursewizardstep.php
blob: 9d3924fa5370091172f815751cac945a92af5492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require_once('lib/models/CourseWizardStepRegistry.php');

class Tic6653AddAdvancedCoursewizardstep extends Migration
{

    function description() {
        return 'advanced alternative to the BasicDataWizardStep';
    }

    function up()
    {
        if (!CourseWizardStepRegistry::findByClassName('AdvancedBasicDataWizardStep')) {
            CourseWizardStepRegistry::registerStep('Erweiterte Grunddaten', 'AdvancedBasicDataWizardStep', 1, false);
        }
    }

    function down()
    {
        CourseWizardStepRegistry::deleteBySQL('classname = :name', 
                [':name' => 'AdvancedBasicDataWizardStep']);
    }
}