Project

General

Profile

Project identifier - the Moving target

Added by Terence Mill about 13 years ago

We have the problem that our projects name chnaged and now the url doesn't match the new projects name meaning, because its made of the identifier which can't be changed for the project.

I can understand that one would provide permannet urls, but we would accept to loose that in case we change the project identifier more than moving hundreds of wiki pages manually from one project to another new project with the correct idetifier. Furthermore our threads and news, user setup can't be moved autoamicatlly also.

Is there an uncodumented way to workwrround this issue (but safe) vioa sql commands?
Seesm as indetfier is used as internal foreign key also as fur url, what isn't a nice apporach for my understanding of operational keys.


Replies (3)

RE: Project identifier - the Moving target - Added by Felix Schäfer about 13 years ago

Terence Mill wrote:

Is there an uncodumented way to workwrround this issue (but safe) vioa sql commands?

I usually just change it in the DB if this is needed, beware though:
  • the URL of the project will change accordingly,
  • you will need to change the name of the associated repository if served through apache with Redmine.pm,
  • any link in Redmine of the form (for example) [[old-identifier:Wikipage]] will become obsolete, and other than figuring out some clever regex there's no automated way to change those.

RE: Project identifier - the Moving target - Added by Terence Mill about 13 years ago

Is ther only one entry i have to update?
Which table(s) do i have to update?

you will need to change the name of the associated repository if served through apache with Redmine.pm,

I would stop apache, update the tables, rename the svn foder according to the new project indentifier and the start apache again. Should be fast enough to skip my cron job for reposman. If not i have to delete teh old new svn repo afterwards additionally.

RE: Project identifier - the Moving target - Added by Felix Schäfer about 13 years ago

Terence Mill wrote:

Is ther only one entry i have to update?

For projects without a repository one, for those with a repository up to three.

Which table(s) do i have to update?

The columns are: projects.identifier, repositories.url and repositories.root_url.

    (1-3/3)