From 8877d60d7ea6bff078ae1a1ef97bc9313f46250d Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sun, 3 Aug 2008 00:53:26 -0400 Subject: [PATCH] update sipb-xen-database-tables svn path=/trunk/packages/sipb-xen-database/; revision=836 --- config.todo | 1 - debian/changelog | 7 +++++++ sipb-xen-database-tables | 8 ++++---- 3 files changed, 11 insertions(+), 5 deletions(-) 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() -- 1.7.9.5