mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-18 01:18:42 +00:00
Fix relation
This commit is contained in:
parent
1234eba29d
commit
c81e5f70f9
|
|
@ -75,7 +75,7 @@ class Installer extends InstallerAbstract
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar_permission`
|
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar_permission`
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_permission_ibfk_2` FOREIGN KEY (`calendar_permission_calendar`) REFERENCES `' . $dbPool->get('core')->prefix . 'calendar` (`calendar_id`);'
|
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_permission_ibfk_1` FOREIGN KEY (`calendar_permission_calendar`) REFERENCES `' . $dbPool->get('core')->prefix . 'calendar` (`calendar_id`);'
|
||||||
)->execute();
|
)->execute();
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
|
|
@ -93,10 +93,16 @@ class Installer extends InstallerAbstract
|
||||||
`schedule_end` datetime DEFAULT NULL,
|
`schedule_end` datetime DEFAULT NULL,
|
||||||
`schedule_created_at` datetime NOT NULL,
|
`schedule_created_at` datetime NOT NULL,
|
||||||
`schedule_created_by` int(11) NOT NULL,
|
`schedule_created_by` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`schedule_id`)
|
PRIMARY KEY (`schedule_id`),
|
||||||
|
KEY `schedule_created_by` (`schedule_created_by`)
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
||||||
)->execute();
|
)->execute();
|
||||||
|
|
||||||
|
$dbPool->get('core')->con->prepare(
|
||||||
|
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'schedule`
|
||||||
|
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'schedule_ibfk_1` FOREIGN KEY (`schedule_created_by`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);'
|
||||||
|
)->execute();
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
$dbPool->get('core')->con->prepare(
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar_event` (
|
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar_event` (
|
||||||
`calendar_event_id` int(11) NOT NULL AUTO_INCREMENT,
|
`calendar_event_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user