correctly update database schema
This commit is contained in:
parent
a4bda85428
commit
f3d19383f9
2 changed files with 9 additions and 5 deletions
|
@ -27,7 +27,7 @@ docdir = '../'
|
||||||
basedir = '../'
|
basedir = '../'
|
||||||
localedir = '../po'
|
localedir = '../po'
|
||||||
|
|
||||||
version = '0.16.10.1'
|
version = '0.16.10.2'
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
try:
|
||||||
node = subprocess.Popen('hg tip --template "{node|short}"', shell=True,
|
node = subprocess.Popen('hg tip --template "{node|short}"', shell=True,
|
||||||
|
|
|
@ -233,6 +233,8 @@ class OptionsParser:
|
||||||
self.update_config_to_01641()
|
self.update_config_to_01641()
|
||||||
if old < [0, 16, 10, 1] and new >= [0, 16, 10, 1]:
|
if old < [0, 16, 10, 1] and new >= [0, 16, 10, 1]:
|
||||||
self.update_config_to_016101()
|
self.update_config_to_016101()
|
||||||
|
if old < [0, 16, 10, 2] and new >= [0, 16, 10, 2]:
|
||||||
|
self.update_config_to_016102()
|
||||||
|
|
||||||
gajim.logger.init_vars()
|
gajim.logger.init_vars()
|
||||||
gajim.logger.attach_cache_database()
|
gajim.logger.attach_cache_database()
|
||||||
|
@ -945,7 +947,9 @@ class OptionsParser:
|
||||||
gajim.config.set('video_input_device', 'autovideosrc')
|
gajim.config.set('video_input_device', 'autovideosrc')
|
||||||
if self.old_values['video_input_device'] == 'videotestsrc is-live=true ! video/x-raw-yuv,framerate=10/1':
|
if self.old_values['video_input_device'] == 'videotestsrc is-live=true ! video/x-raw-yuv,framerate=10/1':
|
||||||
gajim.config.set('video_input_device', 'videotestsrc is-live=true ! video/x-raw,framerate=10/1')
|
gajim.config.set('video_input_device', 'videotestsrc is-live=true ! video/x-raw,framerate=10/1')
|
||||||
|
gajim.config.set('version', '0.16.10.1')
|
||||||
|
|
||||||
|
def update_config_to_016102(self):
|
||||||
for account in self.old_values['accounts'].keys():
|
for account in self.old_values['accounts'].keys():
|
||||||
gajim.config.del_per('accounts', account, 'minimized_gc')
|
gajim.config.del_per('accounts', account, 'minimized_gc')
|
||||||
|
|
||||||
|
@ -965,4 +969,4 @@ class OptionsParser:
|
||||||
pass
|
pass
|
||||||
con.close()
|
con.close()
|
||||||
|
|
||||||
gajim.config.set('version', '0.16.10.1')
|
gajim.config.set('version', '0.16.10.2')
|
||||||
|
|
Loading…
Add table
Reference in a new issue