Project

General

Profile

Actions

Defect #62

closed

error when i use wiki

Added by Andy Wu almost 17 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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.

Actions #1

Updated by Jean-Philippe Lang almost 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).

Actions #2

Updated by Andy Wu almost 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.

Actions #3

Updated by Jean-Philippe Lang almost 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.

Actions #4

Updated by Andy Wu almost 17 years ago

I see. what ever, thanks a lot.

Actions

Also available in: Atom PDF