Ask Your Question
2

question id and unicode title slug changed after askbot migration

asked 2012-07-28 23:26:34 -0500

str gravatar image str
81 3 2 8

updated 2012-07-29 21:58:53 -0500

Hi all,

I updated askbot-devel from version34 to version 43, re-installed, and then run migration, everything worked fine, but the question id for each question got changed. Something like for 150 previous posts, the first one got 151, the 100th one got 250.

May be in my postgres database, there is some place I've to reset any sequence from where the question gets the id.

Any help much appreciated. All of my sites previous links posted in various places dont' work now :(

Edit: I'm using ALLOW_UNICODE_SLUGS = True. The unicode string for the question title is different(with the previous link) and wrong now. Before migration it was ok (e.g. similar with the question title)

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-28 23:55:07 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

updated 2012-08-25 20:41:23 -0500

Have you actually checked your site's previous links? They should be working by redirection to the new urls. Do you really have broken links?

edit: id numbers cannot be matched, but we provide proper redirects so that there are no broken links.

link publish delete flag offensive edit

Comments

1

I checked. But previous links dont work. Question ids are not same and no redirection takes place :( Anything to specify in settings.py? But isn't there any way to keep the original question ids as it was?

str ( 2012-07-29 03:21:35 -0500 )edit

@str there must be a way to fix old id's I will look into that and respond by Tuesday. The old id's are saved in the database, something must be wrong in the redirection code.

Evgeny ( 2012-07-29 13:23:18 -0500 )edit

Many thanks, Evgeny. More updates about the issue, 1. previous links do work, i.e. redirects to the new link with new question id; 2. the unicode string for the question title is different(with the previous link) and wrong now.

str ( 2012-07-29 21:36:54 -0500 )edit

Ok, the slugs are different, if I understand correctly, but redirects work, no? Do you get broken links?

Evgeny ( 2012-07-29 22:13:51 -0500 )edit

Yes, Evgeny. Redirects work. No broken link. (But is not there any way keeping the original id's? :-( ). 2. And yes, slugs are different (and wrong.)

str ( 2012-07-29 22:19:47 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-07-28 23:26:34 -0500

Seen: 69 times

Last updated: Aug 25 '12