Ask Your Question

question id and unicode title slug changed after askbot migration

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

str's avatar

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)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

Evgeny's avatar

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.

edit flag offensive delete link more



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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 344 times

Last updated: Aug 25 '12