aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/5.5.27_remove_old_export_config_entries.php
blob: c870ce6c20cadc4cec1ef5a9f7b3c9b4851465c3 (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
<?php

final class RemoveOldExportConfigEntries extends Migration
{
    public function description()
    {
        return 'Removes remnants of the old export';
    }

    public function up()
    {
        DBManager::get()->execute("DELETE FROM `config` WHERE `field` = 'XSLT_ENABLE'");
        DBManager::get()->execute("DELETE FROM `config` WHERE `field` = 'FOP_ENABLE'");
    }

    public function down()
    {
        DBManager::get()->execute("INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
            VALUES('XSLT_ENABLE', '1', 'boolean', 'global', 'global', 1510849314, 1510849314, 'Soll Export mit XSLT angeschaltet sein?')"
        );
        DBManager::get()->execute("INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
            VALUES('FOP_ENABLE', '1', 'boolean', 'global', 'global', 1510849314, 1510849314, 'Soll Export mit FOP erlaubt sein?')"
        );
    }
}