modified cc_schedule table, added foreign key to show instance id for easy clean up when show needs to be cleared/deleted. replaced primary key with a standard auto incrementing key for efficiency since the other key had no use.

This commit is contained in:
naomiaro 2011-02-06 01:10:07 -05:00
parent 14c71a3f39
commit ebb43857f6
12 changed files with 766 additions and 45 deletions

View file

@ -494,10 +494,10 @@ class ShowInstance {
if(is_null($lastGroupId)) {
$groupId = $sched->add($this->getShowStart(), null, $plId);
$groupId = $sched->add($this->_instanceId, $this->getShowStart(), null, $plId);
}
else {
$groupId = $sched->addPlaylistAfter($lastGroupId, $plId);
$groupId = $sched->addPlaylistAfter($this->_instanceId, $lastGroupId, $plId);
}
$groupsched = new CcShowSchedule();