| 1 |
$Id$
|
| 2 |
|
| 3 |
The Links Package contains several scripts that can help you upgrade from
|
| 4 |
legacy modules. If your favorite legacy module should be supported and
|
| 5 |
isn't, contributed update scripts are welcome. Please create new scripts
|
| 6 |
rather than adding additional modules to the existing ones, as the desire
|
| 7 |
is to keep these as simple as possible.
|
| 8 |
|
| 9 |
|
| 10 |
GENERAL UPGRADE PROCEDURE:
|
| 11 |
|
| 12 |
1. Use Drupal's own upgrade process to convert to Drupal 4.7.x. Don't worry
|
| 13 |
that the URLs appear to be missing. They are stored in a table separate
|
| 14 |
from the basic nodes, and will be migrated to the new {links_node} table
|
| 15 |
by this script.
|
| 16 |
|
| 17 |
2. Decide which script(s) you need based on the instructions that follow.
|
| 18 |
Copy the script(s) to the top-level directory of your Drupal site.
|
| 19 |
|
| 20 |
3. Login to your site as the administrative user.
|
| 21 |
|
| 22 |
4. Manually type the URL to the upgrade script you wish to run. These scripts
|
| 23 |
are independent of one another, so if you need to use more than one, you
|
| 24 |
can run them in any order you wish.
|
| 25 |
|
| 26 |
5. To prevent the timeout errors that can happen on some servers during
|
| 27 |
database transactions that process thousands of records, the upgrade
|
| 28 |
scripts limit themselves to no more than 1000 nodes per run. You should
|
| 29 |
simply use your browser's reload or refresh function to re-execute each
|
| 30 |
script until it reports that it had zero records to do on its run. The
|
| 31 |
scripts are self-limiting, so you won't hurt anything by accidentally
|
| 32 |
running it too many times.
|
| 33 |
|
| 34 |
|
| 35 |
DESCRIPTION OF THE UPGRADE SCRIPTS:
|
| 36 |
|
| 37 |
update-weblinks-old.php
|
| 38 |
|
| 39 |
This script is to be used for "weblink" nodes created with the OLD
|
| 40 |
version of weblink.module, for Drupal versions prior to 4.6. Do NOT
|
| 41 |
attempt to use this script with the newer versions of weblink.module
|
| 42 |
created by Ber Kessels.
|
| 43 |
|
| 44 |
update-weblinks.php
|
| 45 |
|
| 46 |
This script is for the newer "weblink" nodes created with Ber
|
| 47 |
Kessels' version of weblinks for Drupal 4.6. Do NOT run this
|
| 48 |
script against older versions.
|
| 49 |
|
| 50 |
update-webstory.php
|
| 51 |
|
| 52 |
Most people will not need this script; it is provided mainly as an
|
| 53 |
example. The webstory.module was a custom node type used only on a
|
| 54 |
few web sites. But since it needed to be written, there was no reason
|
| 55 |
not to share in hopes that it might be useful as a template for
|
| 56 |
others who have custom links-handling modules.
|