Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
791900c7
Commit
791900c7
authored
May 22, 2018
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqlite: fix indexes of upgraded db
parent
6dcda4e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
neo/storage/database/sqlite.py
neo/storage/database/sqlite.py
+2
-1
No files found.
neo/storage/database/sqlite.py
View file @
791900c7
...
@@ -223,7 +223,8 @@ class SQLiteDatabaseManager(DatabaseManager):
...
@@ -223,7 +223,8 @@ class SQLiteDatabaseManager(DatabaseManager):
for
table
,
schema
in
schema_dict
.
iteritems
():
for
table
,
schema
in
schema_dict
.
iteritems
():
q
(
schema
%
(
'IF NOT EXISTS '
+
table
))
q
(
schema
%
(
'IF NOT EXISTS '
+
table
))
for
i
,
index
in
enumerate
(
index_dict
.
get
(
table
,
()),
1
):
for
table
,
index
in
index_dict
.
iteritems
():
for
i
,
index
in
enumerate
(
index
,
1
):
q
(
index
%
(
'IF NOT EXISTS _%s_i%s'
%
(
table
,
i
),
table
))
q
(
index
%
(
'IF NOT EXISTS _%s_i%s'
%
(
table
,
i
),
table
))
self
.
_uncommitted_data
.
update
(
q
(
"SELECT data_id, count(*)"
self
.
_uncommitted_data
.
update
(
q
(
"SELECT data_id, count(*)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment