Archived

Managing Component Updates (Component release files)

From Joomla! Documentation

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

<sidebar>

  • Managing Component Updates
    • J2.5:Managing Component Updates|Overview
    • J2.5:Managing Component Updates (Manifest file)|Manifest file
    • J2.5:Managing Component Updates (Script.php)|Script.php
    • J2.5:Managing Component Updates (Update SQL files)|Update SQL files
    • J2.5:Managing Component Updates (Component release files)|Component release files
    • J2.5:Managing Component Updates (How to use this example)|How to use this example
  • Help
    • JDOC:How to Contribute to Joomla! Documentation|Contribute to Joomla! Docs
    • JDOC:Documentation_Translators|Translate Joomla! Docs
    • Help:Cheatsheet|Editing Help
    • Sandbox|Play in the Sandbox
    • JDOC:Wiki_policy|JDOC's Policies
    • JEDL|Documentation License
    • helppage|More Help

</sidebar>

Copyedit.png
This Page Needs Your Help

This page is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.


Component Release Files[edit]

Included in this example are zip files for four releases. You will need to download all four to exercise the features of this example.

Version 1.0[edit]

The zip file can be downloaded from democompupdate_10.zip. It contains files:

  • democompupdate_10/democompupdate.xml
  • democompupdate_10/script.php
  • democompupdate_10/admin/sql/install_data.sql
  • democompupdate_10/admin/sql/uninstall.sql
  • democompupdate_10/admin/sql/updates/1.0.sql
  • democompupdate_10/site/controller.php
  • democompupdate_10/site/democompupdate.php
  • democompupdate_10/site/models/democompupdate.php
  • democompupdate_10/site/views/democompupdate/view.html.php
  • democompupdate_10/site/views/democompupdate/tmpl/default.php

Version 1.0.j3[edit]

The zip file can be downloaded from democompupdate_10j3.zip. It is identical to version 1.0, except that is requires Joomla 30.0. The intent is that this will cause an abort of the install or update. Diff's of democompupdate_10 and democompupdate_10j3 show how files have changed.

diff -r democompupdate_10/democompupdate.xml democompupdate_10j3/democompupdate.xml
2c2
< <extension type="component" version="1.6" method="new">
---
> <extension type="component" version="30.0" method="new">

Version 1.1.1[edit]

The zip file can be downloaded from democompupdate_111.zip. Diff's of democompupdate_10 and democompupdate_111 show how files have changed.

diff -r democompupdate_10/admin/sql/install_data.sql democompupdate_111/admin/sql/install_data.sql
10c10
< (1,'1.0');
---
> (1,'1.1.1');
Only in democompupdate_111/admin/sql/updates: 1.1.1.sql
Only in democompupdate_111/admin/sql/updates: 1.1.sql
diff -r democompupdate_10/democompupdate.xml democompupdate_111/democompupdate.xml
2c2
< <extension type="component" version="1.6" method="new">
---
> <extension type="component" version="1.6" method="upgrade">
8c8
< 	<version>1.0</version>
---
> 	<version>1.1.1</version>
diff -r democompupdate_10/site/views/democompupdate/view.html.php democompupdate_111/site/views/democompupdate/view.html.php
25c25
< 		$myRev = '1.0';
---
> 		$myRev = '1.1.1';

Version 1.3[edit]

The zip file can be downloaded from democompupdate_13.zip. Diff's of democompupdate_111 and democompupdate_13 show how files have changed.

diff -r democompupdate_111/admin/sql/install_data.sql democompupdate_13/admin/sql/install_data.sql
10c10,12
< (1,'1.1.1');
---
> (1,'1.1.1'),
> (2,'1.2.1'),
> (3,'1.3');
Only in democompupdate_13/admin/sql/updates: 1.2.1.sql
Only in democompupdate_13/admin/sql/updates: 1.2.sql
Only in democompupdate_13/admin/sql/updates: 1.3.sql
diff -r democompupdate_111/democompupdate.xml democompupdate_13/democompupdate.xml
8c8
< 	<version>1.1.1</version>
---
> 	<version>1.3</version>
diff -r democompupdate_111/site/views/democompupdate/view.html.php democompupdate_13/site/views/democompupdate/view.html.php
25c25
< 		$myRev = '1.1.1';
---
> 		$myRev = '1.3';

Contributors[edit]