Skip to content

Commit aed1f6f

Browse files
author
Marius Burkard
committed
- remove legacy php from pages on update
1 parent 5827252 commit aed1f6f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ ALTER TABLE `client`
143143
DROP COLUMN `limit_xmpp_webpresence`,
144144
DROP COLUMN `limit_xmpp_http_upload`;
145145

146-
147146
DROP TABLE `xmpp_domain`;
148147
DROP TABLE `xmpp_user`;
148+
149+
-- only on nginx
150+
UPDATE `web_domain` as d INNER JOIN `server` as s ON (s.server_id = d.server_id) SET d.php = 'php-fpm' WHERE d.php = 'fast-cgi' AND s.config LIKE '%\nserver_type=nginx\n%' AND s.config NOT LIKE '%\nserver_type=apache\n%';
151+
152+
UPDATE `web_domain` SET `php` = 'php-fpm' WHERE `php` = 'hhvm';
153+
UPDATE `web_domain` SET `php` = 'fast-cgi' WHERE `php` = 'cgi';
154+
UPDATE `web_domain` SET `php` = 'mod' WHERE `php` = 'suphp';

0 commit comments

Comments
 (0)