##// END OF EJS Templates
nicer setup question about repo path
marcink -
r1917:a7a282a9 rhodecode-0.0.1.2.4 default
parent child Browse files
Show More
@@ -100,6 +100,13 b' class DbManage(object):'
100 from rhodecode.lib.dbmigrate.migrate.exceptions import \
100 from rhodecode.lib.dbmigrate.migrate.exceptions import \
101 DatabaseNotControlledError
101 DatabaseNotControlledError
102
102
103 if 'sqlite' in self.dburi:
104 print (
105 '********************** WARNING **********************\n'
106 'Make sure your version of sqlite is at least 3.7.X. \n'
107 'Earlier versions are known to fail on some migrations\n'
108 '*****************************************************\n'
109 )
103 upgrade = ask_ok('You are about to perform database upgrade, make '
110 upgrade = ask_ok('You are about to perform database upgrade, make '
104 'sure You backed up your database before. '
111 'sure You backed up your database before. '
105 'Continue ? [y/n]')
112 'Continue ? [y/n]')
@@ -130,7 +137,8 b' class DbManage(object):'
130 # UPGRADE STEPS
137 # UPGRADE STEPS
131 #======================================================================
138 #======================================================================
132 class UpgradeSteps(object):
139 class UpgradeSteps(object):
133 """Those steps follow schema versions so for example schema
140 """
141 Those steps follow schema versions so for example schema
134 for example schema with seq 002 == step_2 and so on.
142 for example schema with seq 002 == step_2 and so on.
135 """
143 """
136
144
@@ -168,7 +176,7 b' class DbManage(object):'
168 #CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE
176 #CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE
169 for step in upgrade_steps:
177 for step in upgrade_steps:
170 print ('performing upgrade step %s' % step)
178 print ('performing upgrade step %s' % step)
171 callable = getattr(UpgradeSteps(self), 'step_%s' % step)()
179 getattr(UpgradeSteps(self), 'step_%s' % step)()
172
180
173 def fix_repo_paths(self):
181 def fix_repo_paths(self):
174 """Fixes a old rhodecode version path into new one without a '*'
182 """Fixes a old rhodecode version path into new one without a '*'
@@ -343,8 +351,10 b' class DbManage(object):'
343 log.info('Setting up repositories config')
351 log.info('Setting up repositories config')
344
352
345 if not self.tests and not test_repo_path:
353 if not self.tests and not test_repo_path:
346 path = raw_input('Specify valid full path to your repositories'
354 path = raw_input(
347 ' you can change this later in application settings:')
355 'Enter a valid path to store repositories. '
356 'All repositories in that path will be added automatically:'
357 )
348 else:
358 else:
349 path = test_repo_path
359 path = test_repo_path
350 path_ok = True
360 path_ok = True
General Comments 0
You need to be logged in to leave comments. Login now