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:
parent
14c71a3f39
commit
ebb43857f6
12 changed files with 766 additions and 45 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue