From 8aab6dbab69832cd8705aa463d091b731f1fa19a Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Mon, 12 Nov 2007 04:41:11 -0500 Subject: [PATCH] Make sipb-xen-database-tables safer svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=241 --- debian/changelog | 6 ++++++ sipb-xen-database-tables | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4cd47ac..7e1cc3a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-database (10.1) unstable; urgency=low + + * Make sipb-xen-database-tables safer (don't default to drop_all) + + -- Quentin Smith Mon, 12 Nov 2007 04:39:59 -0500 + sipb-xen-database (10) unstable; urgency=low * Added a machine_access table for cached ACLs diff --git a/sipb-xen-database-tables b/sipb-xen-database-tables index 537462a..439e5e1 100755 --- a/sipb-xen-database-tables +++ b/sipb-xen-database-tables @@ -14,5 +14,7 @@ connect('postgres://sipb-xen@/sipb_xen') if sys.argv[1] == "create": meta.create_all() -else: +elif sys.argv[1] == "drop": meta.drop_all() +else: + usage() -- 1.7.9.5