Skip to content

Commit 9653158

Browse files
authored
[4.0] Fix SQL error when updating from 3.10 (#33820)
* Fix SQL error on update from 3.10 * Fix wrong names quoting for postgresql * Revert "Fix SQL error on update from 3.10" This reverts commit de7ddb1. * Revert previous change in 4.0.0-2018-06-03.sql and use IF EXISTS for DROP TABLE instead
1 parent 13a036e commit 9653158

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
DELETE FROM `#__extensions` WHERE `name` = 'com_csp' and `type` = 'component' and `element` = 'com_csp';
2-
DROP TABLE `#__csp`;
2+
DROP TABLE IF EXISTS `#__csp`;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
DELETE FROM `#__extensions` WHERE `name` = 'com_csp' and `type` = 'component' and `element` = 'com_csp';
2-
DROP TABLE `#__csp`;
1+
DELETE FROM "#__extensions" WHERE "name" = 'com_csp' and "type" = 'component' and "element" = 'com_csp';
2+
DROP TABLE IF EXISTS "#__csp";

0 commit comments

Comments
 (0)