git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc2846
)
- reconnect to db after utf8 encoding
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 14 Nov 2006 22:08:31 +0000
(22:08 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 14 Nov 2006 22:08:31 +0000
(22:08 +0000)
tools/upgrade-db.py
patch
|
blob
|
history
diff --git
a/tools/upgrade-db.py
b/tools/upgrade-db.py
index
d7ceaa5
..
d307045
100755
(executable)
--- a/
tools/upgrade-db.py
+++ b/
tools/upgrade-db.py
@@
-318,13
+318,16
@@
try:
if os.system(recreate_cmd):
print "ERROR: database encoding failed. Aborting"
sys.exit(1)
-
+
os.remove(dump_file_encoded)
os.remove(dump_file)
except:
raise
+db = connect()
+cursor = db.cursor()
+
# parse the schema user wishes to upgrade to
try:
file = open(schema_file, 'r')