Richard Merryweather wrote:
> Whereabouts do I get this perl script? I have looked on the CVS
> web but I get errors and I'm not sure which file? Sorry about this, I
> don't know much about CVS. The file from the link above worked
> fine, but as you said it can have problems, and I have definitely
> modified the admin site. So if the newer script is better I will use
> that.
http://cvs.midgard-project.org/~checkout~/midgard/data/sg0-to-sg1?rev=1.1&content-type=text/plain
The sg0migrate script will work as long as you've only changed
existing pages, not deleted or added records to the admin or example
sites. The ids of the records that sg0migrate considers to be part of
those sites are hardcoded (yes, yuck, no other way) in sg0migrate. If
you added records (pages, articles, whatever) to either site they will
be moved to the new SG. If you deleted records from either site, the id
may have been reused in another site and will remain in SG0.
sg0-to-sg1 will simply move _everything_ into sg1. It'll work, and the
admin site will remain working, but only in sg1, which is why you'll
want to install the data package so you once again have a working sg0
admin site.
> > 1. Make very sure you have a backup.
> > 2. have the new data package handy.
>
> being midgard-data-1.4.1-5?
Or midgard-data-1.4.2 which I'm about to upload.
> It will happily install over the altered database? Not a huge issue
> though, I will be doing a few dummy runs on a mirror of our
> production server.
It will, but you'll need to have repligard ids for your database. The
procedure would be:
1. repligard -m (adds repligard ids for every resource that's missing
them)
2. database-upgrade (adds fields and/or tables to make the database
compatible with 1.4, everything now in sg0)
3. sg0-to-sg1 (everything now in sg1)
4. install data package
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]