blob: be1bfff551acf9285802ef97bed6b74aa9fcf2e0 (
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 Tic3967TurnoutMandatory extends Migration
{
public function description()
{
return 'adds option to make admission turnout mandatory';
}
public function up()
{
DBManager::get()->exec("
ALTER TABLE `sem_classes` ADD `admission_turnout_mandatory` TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER `is_group`
");
$cache = StudipCacheFactory::getCache();
$cache->expire('DB_SEM_CLASSES_ARRAY');
}
public function down()
{
DBManager::get()->exec("ALTER TABLE `sem_classes` DROP `admission_turnout_mandatory`");
$cache = StudipCacheFactory::getCache();
$cache->expire('DB_SEM_CLASSES_ARRAY');
}
}
|