projects
/
invirt/packages/invirt-database.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the invirt-database Xen config script into invirt-xen-config
[invirt/packages/invirt-database.git]
/
sipb-xen-database-tables
diff --git
a/sipb-xen-database-tables
b/sipb-xen-database-tables
index
439e5e1
..
0b37bfc
100755
(executable)
--- a/
sipb-xen-database-tables
+++ b/
sipb-xen-database-tables
@@
-1,6
+1,6
@@
#!/usr/bin/env python
#!/usr/bin/env python
-from sipb_xen_database import *
+from invirt import database
import sys
def usage():
import sys
def usage():
@@
-10,11
+10,11
@@
def usage():
if len(sys.argv) == 1:
usage()
if len(sys.argv) == 1:
usage()
-connect('postgres://sipb-xen@/sipb_xen')
+database.connect()
if sys.argv[1] == "create":
if sys.argv[1] == "create":
- meta.create_all()
+ database.meta.create_all()
elif sys.argv[1] == "drop":
elif sys.argv[1] == "drop":
- meta.drop_all()
+ database.meta.drop_all()
else:
usage()
else:
usage()