Tickets

#6 (Open) default_page doesn't work with sqlite3

last changed by Cyril

In the model page.rb :

Page.connection.execute(“UPDATE pages SET default_page = FALSE WHERE default_page = TRUE;”)

and :

def find_default Page.find(:first, :conditions => ‘default_page = TRUE’) end

returns an error. Boolean fields are not recognized in sqlite3 ?

I did a soft change in the code to avoid the error but I did it in a crappy way !