HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c »  Show posts from    to     

Icy Phoenix


Old Support Topics - HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c



alephlg [ Tue 30 Dec, 2008 13:15 ]
Post subject: HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c
Please replace db_from and db_to to your databases's name, and run correct permissions after backup ALL databases.
This is v1.0 script:
Spoiler: [ Show ]

After run the script please edit an forum description: must update include/def_tree.php

This script test in migrating the mandrivalinux.hu
Please send the bugs in this topics.

Aleph


alephlg [ Thu 08 Jan, 2009 23:59 ]
Post subject: Re: HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c
Convert Drupal's SEO links to Icy Phoenix's links:
Code: [Hide] [Select]
SELECT u1.dst,

CASE substring_index(u1.src, '/', -1) WHEN 'feed' THEN
CASE substring_index(u2.src, '/', 1)
WHEN 'node' THEN 'rss.php'
WHEN 'user' THEN 'rss.php'
WHEN 'blog' THEN 'rss.php'
WHEN 'forum' THEN concat('rss.php?f=', substring_index(u2.src, '/', -1))
WHEN 'taxonomy' THEN 'rss.php'
WHEN 'tagadelic' THEN 'rss.php'
WHEN 'contact' THEN 'rss.php'
ELSE 'rss.php' END
WHEN 'track' THEN concat('search.php?search_author=',
substring_index(u2.dst, '/', 1))
ELSE
CASE substring_index(u2.src, '/', 1)
WHEN 'node' THEN concat(u1.dst, '-vt',
substring_index(u2.src, '/', -1), '.html')
WHEN 'user' THEN concat('profile.php?mode=viewprofile&u=',
substring_index(u2.src, '/', -1))
WHEN 'blog' THEN concat(u1.dst, '-vt',
substring_index(u2.src, '/', -1), '.html')
WHEN 'forum' THEN concat(u1.dst, '-vf',
substring_index(u2.src, '/', -1), '.html')
WHEN 'taxonomy' THEN 'index.php'
WHEN 'tagadelic' THEN 'kb.php'
WHEN 'contact' THEN 'contact_us.php'
ELSE 'index.php'
END
END AS url

FROM www_mandrivalinux_hu.url_alias u1
left join www_mandrivalinux_hu.url_alias u2
ON u1.src = concat(u2.src, '/feed')
OR u1.src = u2.src where substring_index(u1.src, '/', -1) != 'feed';


Export the resolution to csv file and edit like stream:

Code: [Hide] [Select]
cat resolution.csv | sed 's/^"/RewriteRule ^/g' | sed 's/","/$ /g' | sed 's/"//g' > old-drupal-link.include


...and include this file to vhost file or insert the .htaccess file after RewriteEngine On line.




Powered by Icy Phoenix