Actions

J2.5

Difference between revisions of "Managing Component Updates (Component release files)"

From Joomla! Documentation

m (Version 1.1.1)
m (Version 1.1.1)
Line 24: Line 24:
  
 
=== Version 1.1.1 ===
 
=== Version 1.1.1 ===
In addition to the files shown in version 1.0, ''democompupdate_111.zip'' also contains files
+
Diff's of ''democompupdate_10.zip'' and ''democompupdate_111.zip'' show how files have changed.
* democompupdate_111/admin/sql/updates/1.1.sql
+
<blockquote>
* democompupdate_111/admin/sql/updates/1.1.1.sql
+
<pre>
The following files have version strings changed from ''1.0'' to ''1.1.1'.
+
diff -r democompupdate_10/admin/sql/install_data.sql democompupdate_111/admin/sql/install_data.sql
* democompupdate_111/admin/sql/install_data.sql
+
10c10
* democompupdate_111/democompupdate.xml
+
< (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/script.php democompupdate_111/script.php
 +
11c11
 +
< private $release = '1.0';
 +
---
 +
> private $release = '1.1.1';
 +
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';
 +
</pre>
 +
</blockquote>
  
 
=== Version 1.3 ===
 
=== Version 1.3 ===

Revision as of 14:26, 30 May 2011

This tutorial is for Joomla Joomla 1.6

Contents

Articles in this series

Component Release Files

Included in this example are zip files for three releases.

Version 1.0

democompupdate_10.zip 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.1.1

Diff's of democompupdate_10.zip and democompupdate_111.zip 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/script.php democompupdate_111/script.php
11c11
<    private $release = '1.0';
---
>    private $release = '1.1.1';
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

In addition to the files shown in version 1.1.1, democompupdate_13.zip also contains files

  • democompupdate_13/admin/sql/updates/1.2.sql
  • democompupdate_13/admin/sql/updates/1.2.1.sql
  • democompupdate_13/admin/sql/updates/1.3.sql