Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sophie Herold
gajim
Commits
52827c6a
Commit
52827c6a
authored
7 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Add new DB table last_archive_message
parent
536a504f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gajim/__init__.py
+1
-1
1 addition, 1 deletion
gajim/__init__.py
gajim/common/check_paths.py
+7
-0
7 additions, 0 deletions
gajim/common/check_paths.py
gajim/common/optparser.py
+22
-0
22 additions, 0 deletions
gajim/common/optparser.py
with
30 additions
and
1 deletion
gajim/__init__.py
+
1
−
1
View file @
52827c6a
import
subprocess
__version__
=
"
0.16.11.
1
"
__version__
=
"
0.16.11.
2
"
try
:
node
=
subprocess
.
Popen
(
'
git rev-parse --short=12 HEAD
'
,
shell
=
True
,
...
...
This diff is collapsed.
Click to expand it.
gajim/common/check_paths.py
+
7
−
0
View file @
52827c6a
...
...
@@ -80,6 +80,13 @@ def create_log_db():
marker INTEGER
);
CREATE TABLE last_archive_message(
jid_id INTEGER PRIMARY KEY UNIQUE,
last_mam_id TEXT,
oldest_mam_timestamp TEXT,
last_muc_timestamp TEXT
);
CREATE INDEX idx_logs_jid_id_time ON logs (jid_id, time DESC);
'''
)
...
...
This diff is collapsed.
Click to expand it.
gajim/common/optparser.py
+
22
−
0
View file @
52827c6a
...
...
@@ -242,6 +242,8 @@ class OptionsParser:
self
.
update_config_to_016105
()
if
old
<
[
0
,
16
,
11
,
1
]
and
new
>=
[
0
,
16
,
11
,
1
]:
self
.
update_config_to_016111
()
if
old
<
[
0
,
16
,
11
,
2
]
and
new
>=
[
0
,
16
,
11
,
2
]:
self
.
update_config_to_016112
()
app
.
logger
.
init_vars
()
app
.
logger
.
attach_cache_database
()
...
...
@@ -1029,3 +1031,23 @@ class OptionsParser:
log
.
exception
(
'
Error
'
)
con
.
close
()
app
.
config
.
set
(
'
version
'
,
'
0.16.11.1
'
)
def
update_config_to_016112
(
self
):
con
=
sqlite
.
connect
(
logger
.
LOG_DB_PATH
)
cur
=
con
.
cursor
()
try
:
cur
.
executescript
(
'''
CREATE TABLE IF NOT EXISTS last_archive_message(
jid_id INTEGER PRIMARY KEY UNIQUE,
last_mam_id TEXT,
oldest_mam_timestamp TEXT,
last_muc_timestamp TEXT
);
'''
)
con
.
commit
()
except
sqlite
.
OperationalError
:
log
.
exception
(
'
Error
'
)
con
.
close
()
app
.
config
.
set
(
'
version
'
,
'
0.16.11.2
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment