?
avatar nicksavov
nicksavov
9 Sep 2014

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.

Steps to reproduce the issue:

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

Expected result:

INSERT IGNORE INTO

Actual result:

INSERT INTO

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

Pull request: #4259

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 - 9 Sep 2014

Documentation for Insert Ignore can be found at http://dev.mysql.com/doc/refman/5.5/en/insert.html

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

avatar mbabker
mbabker - comment - 9 Sep 2014

Neither of the other databases have that type of support without some creative hacking.

avatar nicksavov
nicksavov - comment - 9 Sep 2014

Cool

avatar zero-24 zero-24 - close - 10 Sep 2014
avatar nicksavov
nicksavov - comment - 10 Sep 2014

Closing in favor of #4259

avatar nicksavov nicksavov - close - 10 Sep 2014
avatar nicksavov nicksavov - 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 15:01:10
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment