From: Steve W. <sw...@pa...> - 2001-03-29 21:09:04
|
Right. It's been so long since the issue of upgrading from 1.0 to 1.1.x came up, I'd forgotten all about the issues. The small problem is that we renamed the page field in the database; it was called "text" and we renamed it to "content" to get around the problem that "text" is a keyword in most RDBMSs. I will work on a PHP script to convert a 1.0 database to a 1.2 (read the old one, write a new one). ~swain On Wed, 28 Mar 2001, Steve Wainstead wrote: > > I can't find any discussion of upgrading from 1.03 to 1.1.x in the list > archives. Has anybody done this? In theory we were supposed to be able to > read 1.0 DBM files with 1.2, but in practice I get blank pages. > > It would probably take me an afternoon to write a Perl script to create a > 1.2 compatible database once I identify the problem... > > I swear we had a solution for this! > > ~swain > > --- > http://www.panix.com/~swain/ > "Without music to decorate it, time is just a bunch of boring > production deadlines or dates by which bills must be paid." > -- Frank Zappa > > ---------- Forwarded message ---------- > Date: 28 Mar 2001 01:35:53 -0500 > From: Gary Lawrence Murphy <ga...@ca...> > To: Steve Wainstead <sw...@pa...> > Subject: Re: Asking the impossible > > > I thought I'd give it a quick try tonight, but I'm not having much > luck; I'm using a database from 1.03 (03/21/00) and tried to import > the database by > > 1) load the default pages for the new new version > (not certain of the version other than the Changes start with > the date 2001-03-14 -- I foolishly grabbed the 'nightly' ;) > > 2) login as admin > > 3) delete the generated TEST*db files from /tmp > > 4) copy my old TEST.dbm to TESTpagesdb > (also tried adding TEST.arc -> TEST.archivedb) > > 5) click the link to save as a zip file > > 6) try to import the zip file > > Is this even remotely correct? It seemed precarious, and it didn't > work. > > I also tried dumping the file using a simple perl script; the dumped > pages contained lead-in index-fields that the parser didn't like -- I > didn't find any perl script in the kit, but there is a very promising > file in admin but my naiive attempt at > > /phpwiki/admin/wiki_port1_0.php?portdbmfile=/home/httpd/gen/TEST.dbm > > returned > > Fatal error: Call to undefined function: insertpage() in > /home/httpd/html/phpwiki/admin/wiki_port1_0.php on line 35 > > and grep shows no match for insertpage() in any of the php files; > I expect this is a work in progress ;) and maybe my best option is > to just wait and try again when it's completed. > > Thanks again for your help, and if you have any other ideas for > doing this port, please let me know. > > -- > Gary Lawrence Murphy <ga...@te...> TeleDynamics Communications Inc > Business Innovations Through Open Source Systems: http://www.teledyn.com > "Computers are useless. They can only give you answers."(Pablo Picasso) > > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwiki-talk > --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |