From 6ad11dd3f3e804ce32fda34a2052b1fdd439d24e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 12 Sep 2018 20:06:09 +0200 Subject: [PATCH] Remove calendar dependency --- Admin/Installer.php | 7 ++----- info.json | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 3976e64..8ba363d 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -45,19 +45,16 @@ class Installer extends InstallerAbstract `profile_account_image` int(11) DEFAULT NULL, `profile_account_birthday` datetime DEFAULT NULL, `profile_account_account` int(11) NOT NULL, - `profile_account_calendar` int(11) NOT NULL, PRIMARY KEY (`profile_account_id`), KEY `profile_account_image` (`profile_account_image`), - KEY `profile_account_account` (`profile_account_account`), - KEY `profile_account_calendar` (`profile_account_calendar`) + KEY `profile_account_account` (`profile_account_account`) )ENGINE=InnoDB DEFAULT CHARSET=utf8;' )->execute(); $dbPool->get()->con->prepare( 'ALTER TABLE `' . $dbPool->get()->prefix . 'profile_account` ADD CONSTRAINT `' . $dbPool->get()->prefix . 'profile_account_ibfk_1` FOREIGN KEY (`profile_account_image`) REFERENCES `' . $dbPool->get()->prefix . 'media` (`media_id`), - ADD CONSTRAINT `' . $dbPool->get()->prefix . 'profile_account_ibfk_2` FOREIGN KEY (`profile_account_account`) REFERENCES `' . $dbPool->get()->prefix . 'account` (`account_id`), - ADD CONSTRAINT `' . $dbPool->get()->prefix . 'profile_account_ibfk_3` FOREIGN KEY (`profile_account_calendar`) REFERENCES `' . $dbPool->get()->prefix . 'calendar` (`calendar_id`);' + ADD CONSTRAINT `' . $dbPool->get()->prefix . 'profile_account_ibfk_2` FOREIGN KEY (`profile_account_account`) REFERENCES `' . $dbPool->get()->prefix . 'account` (`account_id`);' )->execute(); // real contacts that you also save in your email contact list. this is to store other accounts diff --git a/info.json b/info.json index 7acf3ab..b156726 100644 --- a/info.json +++ b/info.json @@ -21,7 +21,6 @@ "Home": "1.0.0", "Address": "1.0.0", "Contact": "1.0.0", - "Calendar": "1.0.0", "Media": "1.0.0" }, "providing": {