?
avatar bizmate
bizmate
11 May 2014

I am looking for an organised way to run joomla updates locally and then update production systems by means of code deployment + db migrations, so that i do not have to update joomla on production, or disable the site while running updates.

The current update component uses a specific function apparently to run some sort of sql updates

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_joomlaupdate/models/default.php#L515

In finaliseUpgrade it looks like it is fetching/parsing some queries and applying them to the schema. If i understand this correctly it loops through the scripts/place holders in com_admin/sql/{DBType}/*.sql detecting all the new versions of sql files it has to run on the db.

The problem with these scripts is that I do not see how i can use them as a migration tool for my production database as they are table prefixed and also I would much rather have a single consolidated migration script.

Could you suggest if joomla actually writes the changes it performed somewhere in a migration file?

The logs/joomla_update.php file contains some traces of the changes but these are truncated as apparently it records only a few characters

Any suggestion is very much appreciated.

avatar bizmate bizmate - open - 11 May 2014
avatar Bakual
Bakual - comment - 11 May 2014

This is the issue tracker for Joomla. That is to track bugs in Joomla.

Please use one of the appropriate channels for support requests:

avatar Bakual Bakual - change - 11 May 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-05-11 12:31:30
avatar Bakual Bakual - close - 11 May 2014
avatar zero-24 zero-24 - close - 11 May 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment