Project

General

Profile

SVN update

Added by James Byrne almost 16 years ago

I ran svn update to upgrade redmine. This is what I saw:

  1. svn update
    At revision 2301.

However, when I list db/migrate I get this:
...
rw-r--r- 1 pas pas 218 May 9 2008 092_change_changes_from_revision_to_string.rb
rw-r--r- 1 root root 227 Jul 23 2008 093_add_wiki_pages_protected.rb
rw-r--r- 1 root root 264 Jun 5 2008 094_change_projects_homepage_limit.rb

But, the svn trunk has this:
...
093_add_wiki_pages_protected.rb 227 Bytes 1415 264 days Jean-Philippe Lang Wiki page protection (#851, patch #1146 by Mate...
094_change_projects_homepage_limit.rb 264 Bytes 1457 243 days Jean-Philippe Lang Change projects homepage limit to 255 chars (#6...
095_add_wiki_pages_parent_id.rb 208 Bytes 1698 181 days Jean-Philippe Lang Wiki page hierarchy (#528). Parent page can be ...
096_add_commit_access_permission.rb 321 Bytes 1814 132 days Jean-Philippe Lang Merged nbc branch @ r1812 (commit access permis...
097_add_view_wiki_edits_permission.rb 298 Bytes 1896 124 days Jean-Philippe Lang Typo in migration 97 name (#1929).
098_set_topic_authors_as_watchers.rb 704 Bytes 1878 126 days Jean-Philippe Lang Adds watch/unwatch functionality at forum topic...
099_add_delete_wiki_pages_attachments_permission.rb 339 Bytes 1938 97 days Jean-Philippe Lang Adds 'Delete wiki pages attachments' permission.
100_add_changesets_user_id.rb 203 Bytes 2006 74 days Jean-Philippe Lang Maps repository users to Redmine users (#1383)....
101_populate_changesets_user_id.rb 623 Bytes 2006 74 days Jean-Philippe Lang Maps repository users to Redmine users (#1383)....
102_add_custom_fields_editable.rb 216 Bytes 2276 6 days Jean-Philippe Lang User custom fields can now be set as editable s...
103_set_custom_fields_editable.rb 270 Bytes 2279 5 days Jean-Philippe Lang Fixes 103_set_custom_fields_editable migration ...

So, my question is: Are these additional migrations supposed to be in db/migrate or not? If so, why did svn update not put them there?


Replies (8)

RE: SVN update - Added by Karl Heinz Marbaise almost 16 years ago

Hi,

what does

svn info
says ?

Kind regards
Karl Heinz Marbaise

RE: SVN update - Added by James Byrne almost 16 years ago

$ svn info
Path: .
URL: http://redmine.rubyforge.org/svn/branches/0.7-stable
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2301
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2203
Last Changed Date: 2008-12-30 04:52:11 -0500 (Tue, 30 Dec 2008)

RE: SVN update - Added by Karl Heinz Marbaise almost 16 years ago

Hi James,

URL: http://redmine.rubyforge.org/svn/branches/0.7-stable

That means you are currently on the 0.7 stable branch instead of the trunk

you have to switch to the trunk...but be carefull, cause RoR is 2.1.X on the trunk and you have to shutdown your services before ....

I would suggest to make a backup of your database etc.

Kind regards
Karl Heinz Marbaise

RE: SVN update - Added by James Byrne almost 16 years ago

OK. I no longer use SVN for anything other than Redmine updates. How do I switch to trunk?

We backup the PostgeSQL backend four times a day so backups are no problem. The redmine host already has RoR gems 2.1.2 and 2.2.2 installed so that should be good too. Passenger is also updated but we still use the older version just for redmine.

RE: SVN update - Added by Karl Heinz Marbaise almost 16 years ago

Hi,

you can simply use

svn switch http://redmine.rubyforge.org/svn/branches/0.8-stable
to update to the 0.8 Release or you can
use
svn switch http://redmine.rubyforge.org/svn/trunk
to update to the trunk....
But i would suggest to do a separate checkout of the trunk or the 0.8 release in a different directory
svn co http://redmine.rubyforge.org/svn/branches/0.8-stable NewDirectory

This give you the chance to simple turn back to old version if something goes wrong...

Kind regards
Karl Heinz Marbaise

RE: SVN update - Added by James Byrne almost 16 years ago

Ah. Well. We have a clone of our redmine site, including the DBMS and current update of course, and git repository running hot on a backup host at our alternate location. This site is rsynced from the master every six hours. I will perform a local repository switch immediately after a synchronization and then migrate and test. If all is good then we will continue. If not then we will switch back from a local tar archive and have people use the alternate site unitl local service is restored.

Thanks for the guidance. It is sad to say, but since switching to git last year I have forgotten how to accomplish almost everything that I used to do with SVN. Not that switching repositories was ever a regular occurrence.

RE: SVN update Migration Fails - Added by James Byrne almost 16 years ago

I have switched to the Trunk and resolved all conflicts. When I run

rake db:migrate RAILS_ENV="production"

I see this error:

  1. rake db:migrate RAILS_ENV="production"
    (in /var/data/pas-redmine)
    rake aborted!
    /var/data/pas-redmine/config/boot.rb:4: syntax error
    <<<<<<< .mine
    ^
    /var/data/pas-redmine/config/boot.rb:35: syntax error =======
    ^
    /var/data/pas-redmine/config/boot.rb:66: syntax error

.r2476

^
/var/data/pas-redmine/config/boot.rb:142: syntax error
/var/data/pas-redmine/Rakefile:4
(See full trace by running task with --trace)

Can someone tell how to resolve this?

RE: SVN update - Added by James Byrne almost 16 years ago

Duh! <slaps head> Never mind.

    (1-8/8)