Show More
@@ -100,6 +100,13 b' class DbManage(object):' | |||
|
100 | 100 | from rhodecode.lib.dbmigrate.migrate.exceptions import \ |
|
101 | 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 | 110 | upgrade = ask_ok('You are about to perform database upgrade, make ' |
|
104 | 111 | 'sure You backed up your database before. ' |
|
105 | 112 | 'Continue ? [y/n]') |
@@ -130,7 +137,8 b' class DbManage(object):' | |||
|
130 | 137 | # UPGRADE STEPS |
|
131 | 138 | #====================================================================== |
|
132 | 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 | 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 | 176 | #CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE |
|
169 | 177 | for step in upgrade_steps: |
|
170 | 178 | print ('performing upgrade step %s' % step) |
|
171 |
|
|
|
179 | getattr(UpgradeSteps(self), 'step_%s' % step)() | |
|
172 | 180 | |
|
173 | 181 | def fix_repo_paths(self): |
|
174 | 182 | """Fixes a old rhodecode version path into new one without a '*' |
@@ -343,8 +351,10 b' class DbManage(object):' | |||
|
343 | 351 | log.info('Setting up repositories config') |
|
344 | 352 | |
|
345 | 353 | if not self.tests and not test_repo_path: |
|
346 | path = raw_input('Specify valid full path to your repositories' | |
|
347 | ' you can change this later in application settings:') | |
|
354 | path = raw_input( | |
|
355 | 'Enter a valid path to store repositories. ' | |
|
356 | 'All repositories in that path will be added automatically:' | |
|
357 | ) | |
|
348 | 358 | else: |
|
349 | 359 | path = test_repo_path |
|
350 | 360 | path_ok = True |
General Comments 0
You need to be logged in to leave comments.
Login now