I've been asked to take over & upgrade a site at Dreamhost.

The site is currently running RadiantCMS 0.5.2
I follow the instructions at
http://wiki.radiantcms.org/How_to_Upgrade_05x_to_06
and get to step 4:

4. Copy your old database configuration (config/database.yml) over to
the new project

Actually I copy the databases (sqlite3) as well.

But in step 5:

5. Execute the following command in the new project’s root directory:

   % rake production db:migrate


It fails with this error message:

rake aborted!
SQLite3::SQLException: no such column: class_name: SELECT DISTINCT
class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL

Inspecting the database, yes that column is NOT there.

There is a migration
   011_rename_type_column_on_page_to_class_name.rb:

which does a

    rename_column 'pages', 'type', 'class_name'

So how come its not being applied?

I check the schema_info ...

sqlite> select * from schema_info ;
9

I see in the archives that this came up with a 0.5.2 => 0.6.9
migration back in August.

I applied Joannou's fix, but wonder why this problem still remains in
the disrribution.




-- 
Most people are not really free.  They are confined by the niche in the
world that they carve out for themselves.  They limit themselves to
fewer possibilities by the narrowness of their vision.
    --V. S. Naipaul

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to