First time here? Check out the FAQ!

question id and unicode title slug changed after askbot migration

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)

str's avatar
asked 2012-07-28 23:26:34 -0500, updated 2012-07-29 21:58:53 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


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.

Evgeny's avatar
answered 2012-07-28 23:55:07 -0500, updated 2012-08-25 20:41:23 -0500
edit flag offensive 0 remove flag delete link



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

str's avatar 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's avatar 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's avatar 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's avatar 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's avatar str (2012-07-29 22:19:47 -0500) edit
add a comment see more comments