aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.13_remove_fields_from_extermine.php
blob: b357498d6dba9fc684b092d39addb4756c3449d0 (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
class RemoveFieldsFromExtermine extends Migration
{
    public function description ()
    {
        return 'removes expire|repeat|color|priority from table ex_termine';
    }

    public function up ()
    {
        $this->announce(" removing fields...");
        
        DBManager::get()->exec("ALTER TABLE `ex_termine` DROP `expire`, DROP `repeat`, DROP `color`, DROP `priority`");

        $this->announce("done.");
        
    }
    
    public function down ()
    {
        $this->announce("done.");
    }
}