aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/6.0.30_remove_obsolete_release_notes_config.php
blob: caf6d03b3a4157b309daec750ccbd54db33aa8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

final class RemoveObsoleteReleaseNotesConfig extends Migration
{
    public function description()
    {
        return 'removes the obsolete global config entry SHOW_RELEASE_NOTES';
    }

    public function up()
    {
        DBManager::get()->exec("DELETE `config`, `config_values`
                  FROM `config`
                  LEFT JOIN `config_values` USING (`field`)
                  WHERE `field`  = 'SHOW_RELEASE_NOTES'");
    }

}