Create two package versions, for example
PKGv1 - contains only plugin
PKGv2 - contains plugin and component with its database table and table updates
1 - Install PKGv1
2 - Install PKGv2
I expect that package PKGv2 will upgrade v1 and new component will be installed
In real time upgrade installation tries to execute SQL scripts in \admin\sql\updates folder, and there is no correctly component installation, you've got the error about "table does not exist"
Last check was:
Database Version 5.5.46-0ubuntu0.14.04.2
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.19
Web Server Apache
WebServer to PHP Interface fpm-fcgi
Joomla! Version Joomla! 3.5.0 Stable [ Unicorn ] 21-March-2016 22:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
But if you initially install PKGv2 (with component), it is installed correctly, and processed updates correctly, for example PKGv3 (with component's table changes)
I just want to say, that if in initial installation of package there were not all extensions with it's database tables you can't install upgrade package with new extensions with tables
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-03-25 10:24:48 |
Closed_By | ⇒ | brianteeman |
What code?
It is just packages, without any installation code. Extensions and manifest file.
Please use the mailing list as I suggested
On 25 March 2016 at 10:28, ZhukDmitry notifications@github.com wrote:
What code?
It is just packages, without any installation code. Extensions and
manifest file.—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#9585 (comment)
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
This is a bug.
JInstallerAdapterPackage::copyBaseFiles()
triggers a new JInstaller
instance for each extension in the package based on whatever route the package installation is using (which would only be install or update since discover_install is unsupported for packages). In none of the adapters does the route get switched from update to install if the update path is triggered and the extension is not installed.
Status | Closed | ⇒ | New |
Closed_Date | 2016-03-25 10:24:46 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Category | ⇒ | Installation |
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
I've having a similar problem. Is this due to this problem or a new bug?
It hasn't changed since my comment from March.
We use packages for rolling out changes to some major websites, it's definitely a plus for Joomla when managing large sites. If someone were to fix this problem it would be much appreciated.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-12 12:42:15 |
Closed_By | ⇒ | brianteeman |
Closing as we have a PR for testing
Many thanks @mbabker and @brianteeman
Without seeing the code it is impossible to say but it sounds like an issue in your code and not the core of Joomla so I am closing this here.
You will be better asking this question on the mailing list specifically or extension development https://groups.google.com/forum/#!forum/joomla-dev-general