Defect #62
closederror when i use wiki
0%
Description
The wiki is all right when I used version 0.4.2. But when I upgraded to 0.5.0, there's error when I want to edit a wiki
page.
The detail error description is in the attachment.
Updated by Jean-Philippe Lang over 17 years ago
First, there was no wiki in 0.4.2. Wiki was added in 0.5.0.
It looks like your database schema is not in phase with your
code. In wiki_contents table, 'comment' column was renamed 'comments'
after 0.5.0.
Please, tell me what your database version is (select * from
schema_info) and which code you're using (0.5.0 release or repository
checkout).
Updated by Andy Wu over 17 years ago
I've checked the database. the database version is 47 and
the name of 'comments' column has already been
renamed 'comments'.
As you said, the code of the early version was from the
trunk of the repository,and the version seems newer than
0.4.2, which has wiki already.After the new version(0.5.0)
was published, I checked out the code from repository, and
run the command: 'rake db:migrate
RAILS_ENV="production"'.Because of some error of this
new
version(from trunk), I redownload the code of 0.5.0.
Now, I'm using 0.5.0 code. The database is from trunk, but
I'm not sure which version of trunk it is.
Updated by Jean-Philippe Lang over 17 years ago
Sorry but it's not a bug. You can not upgrade your database and
then use an older code.
So I see 2 solutions:
- restore your db backup and migrate with the 0.5.0 code (so
you'll have a 0.5.0 database)
- use the latest source from trunk, and report the error you
were getting.