[jboss-svn-commits] JBL Code SVN: r23755 - labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Nov 6 07:49:38 EST 2008
Author: szimano
Date: 2008-11-06 07:49:38 -0500 (Thu, 06 Nov 2008)
New Revision: 23755
Modified:
labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/migrate-custom.sql
Log:
fixed missing DB names
Modified: labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/migrate-custom.sql
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/migrate-custom.sql 2008-11-06 12:23:28 UTC (rev 23754)
+++ labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/migrate-custom.sql 2008-11-06 12:49:38 UTC (rev 23755)
@@ -10,7 +10,7 @@
SELECT j.lft INTO @count from ${CS}.jiveCommunity j WHERE j.name = "forum";
insert into ${CS}.jiveCommunity
(communityID, name, displayName, description, creationDate, modificationDate, lft, rgt, localeCode, workflowID, modDfltThreadVal, modDfltMsgVal, contentTypes)
- select n.forum_id, n.forum_name, n.forum_name, n.forum_desc, 0,0, at count:=@count+1, at count:=@count+1,NULL, -1,1,1,7 from nukes3.phpbb_forums n;
+ select n.forum_id, n.forum_name, n.forum_name, n.forum_desc, 0,0, at count:=@count+1, at count:=@count+1,NULL, -1,1,1,7 from ${NUKES3}.phpbb_forums n;
-- update forum rgt
update ${CS}.jiveCommunity SET rgt=@count:=@count+1 where ${CS}.jiveCommunity.name = "forum";
@@ -22,7 +22,7 @@
-- put topics
insert into ${CS}.jiveThread
(threadID, containerType, containerID, rootMessageID, modValue, rewardPoints, creationDate, modificationDate, status)
- select p.topic_id,14,p.forum_id,p.topic_first_post_id,1,0,UNIX_TIMESTAMP(p.topic_time)*1000,UNIX_TIMESTAMP(p.topic_last_post_time)*1000,2 from phpbb_topics p;
+ select p.topic_id,14,p.forum_id,p.topic_first_post_id,1,0,UNIX_TIMESTAMP(p.topic_time)*1000,UNIX_TIMESTAMP(p.topic_last_post_time)*1000,2 from ${NUKES3}.phpbb_topics p;
-- delete threads
delete from ${CS}.jiveThread where ${CS}.jiveThread.threadID != 1001;
More information about the jboss-svn-commits
mailing list