public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
fixing an importing issue for punbb databases

git-svn-id: http://eldorado.googlecode.com/svn/trunk@614 
9c008b19-a030-0410-9975-d76d301b4276
trevorturk (author)
Fri Jan 18 20:18:18 -0800 2008
commit  cc1222edb945fcda78e5857ee3e97fcb86e404a1
tree    ebd11ba43e040cf74164c22629470ae1f0e57db0
parent  b216bf05943459d29000b9dc4906213053cb49e7
...
164
165
166
167
 
168
169
170
...
164
165
166
 
167
168
169
170
0
@@ -164,7 +164,7 @@ namespace :import do
0
     #
0
     puts 'Importing topics...'
0
     ActiveRecord::Base.establish_connection(eldorado['import'])
0
- @items = ActiveRecord::Base.connection.execute("SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, closed, sticky, forum_id FROM #{prefix}topics")
0
+ @items = ActiveRecord::Base.connection.execute("SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, closed, sticky, forum_id FROM #{prefix}topics WHERE last_post_id != 0")
0
     ActiveRecord::Base.establish_connection(eldorado[RAILS_ENV])
0
     for i in @items
0
       @item = Topic.new

Comments

    No one has commented yet.