# HG changeset patch # User Marcin Kuzminski # Date 2012-01-06 04:19:04 # Node ID 971ce5e20856d4d38d95622a367d11b8d7ddf1a0 # Parent aa4423c82c23cb57df537007fd3546ecd18a704f added warning on sqlite when using migration. Sqlite prior to 3.7 series are known to not support some migration changes like table renames. Thus are failing. diff --git a/rhodecode/lib/db_manage.py b/rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py +++ b/rhodecode/lib/db_manage.py @@ -97,6 +97,13 @@ class DbManage(object): from rhodecode.lib.dbmigrate.migrate.exceptions import \ DatabaseNotControlledError + if 'sqlite' in self.dburi: + print ( + '********************** WARNING **********************\n' + 'Make sure your version of sqlite is at least 3.7.X. \n' + 'Earlier versions are known to fail on some migrations\n' + '*****************************************************\n' + ) upgrade = ask_ok('You are about to perform database upgrade, make ' 'sure You backed up your database before. ' 'Continue ? [y/n]') @@ -161,6 +168,9 @@ class DbManage(object): print ('Adding ldap defaults') self.klass.create_ldap_options(skip_existing=True) + def step_4(self): + print ('TODO:') + upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1) # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE