From 67383b2c220b563ebcfa3810d9e4bd232ebe1049 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 4 Jun 2022 13:24:16 +0500 Subject: [PATCH] add wpmanager tables in upgrade --- plogical/upgrade.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index c003ff183..524c77383 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -881,16 +881,6 @@ autocreate_system_folders = On except: pass - try: - cursor.execute('ALTER TABLE `websiteFunctions_wpstaging` ADD CONSTRAINT `websiteFunctions_wps_owner_id_543d8aec_fk_websiteFu` FOREIGN KEY (`owner_id`) REFERENCES `websiteFunctions_wpsites` (`id`)') - except: - pass - - try: - cursor.execute('ALTER TABLE `websiteFunctions_wpstaging` ADD CONSTRAINT `websiteFunctions_wps_wpsite_id_82843593_fk_websiteFu` FOREIGN KEY (`wpsite_id`) REFERENCES `websiteFunctions_wpsites` (`id`)') - except: - pass - try: cursor.execute('CREATE TABLE `websiteFunctions_wpstaging` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `owner_id` integer NOT NULL, `wpsite_id` integer NOT NULL)') except: