prepare for shift types model, add db update

main
Philip Häusler 10 years ago
parent 8a51e5d822
commit 25889920cf

@ -1,3 +1,12 @@
/* introduce shift types */
CREATE TABLE IF NOT EXISTS `ShiftTypes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`angeltype_id` int(11) DEFAULT NULL,
`description` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
/* cleanup */
ALTER TABLE `User` DROP `ICQ` ;

@ -0,0 +1,18 @@
<?php
function ShiftType_delete($shifttype_id) {
}
function ShiftType_update($shifttype_id, $name, $angeltype_id, $description) {
}
function ShiftType_create($name, $angeltype_id, $description) {
}
function ShiftType($shifttype_id) {
}
function ShiftTypes() {
}
?>

@ -15,6 +15,7 @@ require_once realpath(__DIR__ . '/../includes/model/NeededAngelTypes_model.php')
require_once realpath(__DIR__ . '/../includes/model/Room_model.php');
require_once realpath(__DIR__ . '/../includes/model/ShiftEntry_model.php');
require_once realpath(__DIR__ . '/../includes/model/Shifts_model.php');
require_once realpath(__DIR__ . '/../includes/model/ShiftTypes_model.php');
require_once realpath(__DIR__ . '/../includes/model/UserAngelTypes_model.php');
require_once realpath(__DIR__ . '/../includes/model/UserGroups_model.php');
require_once realpath(__DIR__ . '/../includes/model/User_model.php');

Loading…
Cancel
Save