exec($query); // Allow decimal credit point specifications $query = "ALTER TABLE `mvv_modul` MODIFY COLUMN `kp` DOUBLE(5,2) DEFAULT NULL"; DBManager::get()->exec($query); $query = "ALTER TABLE `mvv_modulteil` MODIFY COLUMN `kp` DOUBLE(5,2) DEFAULT NULL"; DBManager::get()->exec($query); $query = "ALTER TABLE `mvv_stgteilabschnitt` MODIFY COLUMN `kp` DOUBLE(5,2) DEFAULT NULL"; DBManager::get()->exec($query); // Adjust config sections for mvv $query = "UPDATE `config` SET `section` = 'mvv' WHERE `field` LIKE 'MVV%'"; DBManager::get()->exec($query); } public function down() { // Remove table mvv_extern_contacts $query = "DROP TABLE IF EXISTS `mvv_extern_contacts`"; DBManager::get()->exec($query); // Disallow decimal credit point specifications $query = "ALTER TABLE `mvv_modul` MODIFY COLUMN `kp` INT(11) DEFAULT NULL"; DBManager::get()->exec($query); $query = "ALTER TABLE `mvv_modulteil` MODIFY COLUMN `kp` INT(11) DEFAULT NULL"; DBManager::get()->exec($query); $query = "ALTER TABLE `mvv_stgteilabschnitt` MODIFY COLUMN `kp` INT(11) DEFAULT NULL"; DBManager::get()->exec($query); } }