?
avatar nicksavov
nicksavov
9 Sep 2014

Steps to reproduce the issue:

https://github.com/joomla/joomla-cms/blob/master/installation/sql/mysql/joomla.sql#L1501

Expected result:

CREATE TABLE IF NOT EXISTS `#__postinstall_messages` (

Actual result:

CREATE TABLE `#__postinstall_messages` (

Additional comments:

postgresql and sqlazure don't have any checks for "if not exists".

Also, for MySQL, the "INSERT INTO" can be changed to "INSERT IGNORE INTO" so that the installation script can be used as a recovery script if core extensions are uninstalled via the admin. What the ignore will do is ignore entries that are already there and only insert when an entry doesn't exist. I'm not sure what the equivalents are in postgresql and sqlazure.

avatar nicksavov nicksavov - open - 9 Sep 2014
avatar nicksavov
nicksavov - comment - 9 Sep 2014

Pull request:

#4257

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar nicksavov nicksavov - change - 9 Sep 2014
Priority Medium Low
Status New Pending
Easy No Yes
avatar nicksavov
nicksavov - comment - 10 Sep 2014

Closing in favor of #4229 and #4259

avatar nicksavov nicksavov - close - 10 Sep 2014
avatar nicksavov nicksavov - close - 10 Sep 2014
avatar zero-24 zero-24 - close - 10 Sep 2014
avatar nicksavov nicksavov - change - 10 Sep 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-09-10 14:58:44
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment