]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - UPGRADING
Updated notes on how to move an older PhpWiki to a new 1.3.x wiki.
[SourceForge/phpwiki.git] / UPGRADING
1 FIXME: WARNING WARNING: the schemas used by the new databases
2 are completely incompatible with schemas in any previous version
3 (i.e. before release 1.3.1 of PhpWiki).  If you install this new
4 PhpWiki, you must start with a new empty database (currently
5 either mysql, postgres or dba).  (It will be filled with the
6 usual default pages.)
7
8 FIXME: add more.
9
10 Here's an excerpt from a note I posted on phpwiki-talk with my 
11 recommendation on how to move a wiki from and older version of 
12 PhpWiki to a 1.3.x PhpWiki:
13
14 From: Jeff Dairiki <dairiki@dairiki.org>
15 Cc: phpwiki-talk@lists.sourceforge.net
16 Date: Fri, 9 Nov 2001 11:33:18 -0800
17
18 > Now, say I want to migrate all my 1.2.1 pages. I need to do a zip dump 
19 > (does the admin page let me do that?) and then.... what?
20  
21 It's still a bit of a messy process at this point.  Here's my suggestion.
22
23 1. Start 1.3.x with an empty database.  Browse the FrontPage.  This should
24 fill the wiki with the distributed default 1.3.x pgsrc.  (You've probably
25 already gotten this far.)
26
27 2. Make a zip dump of your 1.2 wiki.  If the contents of
28 PhpWikiAdministration are correct there should be a links 
29 (near the top) which will do that for you.  You need to be
30 in admin mode, though.  This means you must have set an
31 admin user and passwd in admin.php, and you should be browsing
32 through a URL like:
33   http://path.to.your/wiki/admin.php?PhpWikiAdministration
34 (If your PhpWikAdministration page is broken, then
35   http://path.to.your/wiki/admin.php?zip=all
36 should get you a zip dump.)
37
38 3. Now upload your zip dump to your new 1.3 wiki.  (First you need to
39 have set the admin user/passwd in the new index.php.)  You should
40 be able to use the "Upload File" form on the PhpWikiAdministration
41 page.
42
43
44 If that works, the pages from your 1.2 wiki have now overwritten
45 the 1.3 pages (though the 1.3 pages are still saved in the archive).
46 This will break a bunch of 1.3 functionality until you restore
47 the page contents.  Of the top of my head, some pages for which 
48 this will be an issue are:
49   MostPopular, RecentChanges, PhpWikiAdministration,
50   MagicPhpWikiURLs, and ReleaseNotes.
51
52 To restore these pages to the original (1.3) contents:
53
54 4a. Login as the administration user (using the SignIn button at the
55 bottom right corner of the page.)  (You need to do this because
56 some of the pages which need fixing are locked.)
57
58 4b. Browse to a page which needs restoring.  Hit the "History" button
59 (at the bottom of the page).  This should get you a list of all
60 archived versions of the page.
61
62 4c. Browse to the archive 1.3 version of the page (probably version number
63 1) by clicking on the version number of the desired version.
64
65 4d. Click the "Edit old revision" button (bottom of page).  This should
66 get you to the edit form.
67
68 4e. Click the "Save" button.  This should save the archived page contents
69 as the current contents.
70
71 We really need to figure out a way to simplify this process, but, for now,
72 that's what you gotta do.
73
74
75 An older note of mine on the same subject can be found at:
76  http://sourceforge.net/forum/message.php?msg_id=107858
77
78 $Id: UPGRADING,v 1.5 2001-11-09 20:36:45 dairiki Exp $