From: Greg Price Date: Sun, 3 Aug 2008 04:53:26 +0000 (-0400) Subject: update sipb-xen-database-tables X-Git-Tag: sipb-xen-database/10.16^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/8877d60d7ea6bff078ae1a1ef97bc9313f46250d?ds=sidebyside update sipb-xen-database-tables svn path=/trunk/packages/sipb-xen-database/; revision=836 --- diff --git a/config.todo b/config.todo index b0913c1..2af7206 100644 --- a/config.todo +++ b/config.todo @@ -1,2 +1 @@ client/etc/xen/sipb-database: gateway, netmask -sipb-xen-database-tables: db uri diff --git a/debian/changelog b/debian/changelog index a271791..b3dd84b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sipb-xen-database (10.16) unstable; urgency=low + + in sipb-xen-database-tables: + * use invirt.database, and take default db uri + + -- Greg Price Sun, 3 Aug 2008 00:51:32 -0400 + sipb-xen-database (10.15) unstable; urgency=low in /etc/xen/database: diff --git a/sipb-xen-database-tables b/sipb-xen-database-tables index 439e5e1..0b37bfc 100755 --- a/sipb-xen-database-tables +++ b/sipb-xen-database-tables @@ -1,6 +1,6 @@ #!/usr/bin/env python -from sipb_xen_database import * +from invirt import database import sys def usage(): @@ -10,11 +10,11 @@ def usage(): if len(sys.argv) == 1: usage() -connect('postgres://sipb-xen@/sipb_xen') +database.connect() if sys.argv[1] == "create": - meta.create_all() + database.meta.create_all() elif sys.argv[1] == "drop": - meta.drop_all() + database.meta.drop_all() else: usage()