Skip to content

Commit

Permalink
Updated doc to includes some migration snippits
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Apr 15, 2010
1 parent 3c47610 commit 94be2f2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/core_editon_changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@ Must do a SiteNode.rebuild! on all the elements of the structure
Removed tell_friend and tell_friend_link paragraphs


Feedback - must add migration 4 into the database manually and remove migration 2 (migration overlap issue)
Feedback - must add migration 4 into the database manually and remove migration 2 (migration overlap issue)

# 11 is the old DB name
paras = PageParagraph.find(:all,:conditions => 'display_type in ("code","html") AND display_body like "%/system/storage/11%"')
paras.each do |para|
para.display_body = para.display_body.gsub(/\/system\/storage\/11\/([0-9]+)\/[a-zA-Z0-9\.\-_ ]+/,"/__fs__/\\1")
para.save
end


PageRevision.find(:all,:conditions => { :active => 1, :revision_type => 'real' }).map(&:make_real)

0 comments on commit 94be2f2

Please sign in to comment.