Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
d90208a3
Commit
d90208a3
authored
Jul 24, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix neomigrate command
It was broken since review of logging (commit
1fce5cc4
).
parent
bced2e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neo/scripts/neomigrate.py
neo/scripts/neomigrate.py
+4
-4
No files found.
neo/scripts/neomigrate.py
View file @
d90208a3
...
...
@@ -23,8 +23,8 @@ import os
# register options
parser
=
OptionParser
()
parser
.
add_option
(
'-
v'
,
'--verbose'
,
action
=
'store_tru
e'
,
help
=
'
print verbose messages
'
)
parser
.
add_option
(
'-
l'
,
'--logfil
e'
,
help
=
'
log debugging information to specified SQLite DB
'
)
parser
.
add_option
(
'-s'
,
'--source'
,
help
=
'the source database'
)
parser
.
add_option
(
'-d'
,
'--destination'
,
help
=
'the destination database'
)
parser
.
add_option
(
'-c'
,
'--cluster'
,
help
=
'the NEO cluster name'
)
...
...
@@ -51,10 +51,10 @@ def main(args=None):
" resolution could happen when undoing an old transaction."
)
src
=
FileStorage
(
file_name
=
source
,
read_only
=
True
)
dst
=
NEOStorage
(
master_nodes
=
destination
,
name
=
cluster
,
verbose
=
options
.
verbos
e
)
logfile
=
options
.
logfil
e
)
else
:
src
=
NEOStorage
(
master_nodes
=
source
,
name
=
cluster
,
verbose
=
options
.
verbos
e
,
read_only
=
True
)
logfile
=
options
.
logfil
e
,
read_only
=
True
)
dst
=
FileStorage
(
file_name
=
destination
)
# do the job
...
...
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