Philipp Hörist pushed to branch master at gajim / gajim

Commits:

3 changed files:

Changes:

  • gajim/__init__.py
    1 1
     import subprocess
    
    2 2
     
    
    3
    -__version__ = "0.98.1"
    
    3
    +__version__ = "0.98.2"
    
    4 4
     
    
    5 5
     try:
    
    6 6
         node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
    

  • gajim/common/check_paths.py
    ... ... @@ -75,7 +75,6 @@ def create_log_db():
    75 75
                         subject TEXT,
    
    76 76
                         additional_data TEXT DEFAULT '{}',
    
    77 77
                         stanza_id TEXT,
    
    78
    -                    mam_id TEXT,
    
    79 78
                         encryption TEXT,
    
    80 79
                         encryption_state TEXT,
    
    81 80
                         marker INTEGER
    

  • gajim/common/optparser.py
    ... ... @@ -247,6 +247,8 @@ class OptionsParser:
    247 247
                 self.update_config_to_016111()
    
    248 248
             if old < [0, 16, 11, 2] and new >= [0, 16, 11, 2]:
    
    249 249
                 self.update_config_to_016112()
    
    250
    +        if old < [0, 98, 2] and new >= [0, 98, 2]:
    
    251
    +            self.update_config_to_0982()
    
    250 252
     
    
    251 253
             app.logger.init_vars()
    
    252 254
             app.logger.attach_cache_database()
    
    ... ... @@ -876,7 +878,6 @@ class OptionsParser:
    876 878
         def update_config_to_016103(self):
    
    877 879
             self.call_sql(logger.LOG_DB_PATH,
    
    878 880
                 '''ALTER TABLE logs ADD COLUMN 'stanza_id' TEXT;
    
    879
    -            ALTER TABLE logs ADD COLUMN 'mam_id' TEXT;
    
    880 881
                 ALTER TABLE logs ADD COLUMN 'encryption' TEXT;
    
    881 882
                 ALTER TABLE logs ADD COLUMN 'encryption_state' TEXT;
    
    882 883
                 ALTER TABLE logs ADD COLUMN 'marker' INTEGER;
    
    ... ... @@ -913,3 +914,12 @@ class OptionsParser:
    913 914
                 '''
    
    914 915
             )
    
    915 916
             app.config.set('version', '0.16.11.2')
    
    917
    +
    
    918
    +    def update_config_to_0982(self):
    
    919
    +        # This fixes a typo in update_config_to_016112()
    
    920
    +        self.call_sql(logger.LOG_DB_PATH,
    
    921
    +            '''
    
    922
    +            ALTER TABLE logs ADD COLUMN 'account_id' INTEGER;
    
    923
    +            '''
    
    924
    +        )
    
    925
    +        app.config.set('version', '0.98.2')