#!/usr/bin/env python
-from sipb_xen_database import *
+from invirt import database
import sys
def usage():
if len(sys.argv) == 1:
usage()
-connect('postgres://sipb-xen@localhost/sipb_xen')
+database.connect()
if sys.argv[1] == "create":
- meta.create_all()
+ database.meta.create_all()
+elif sys.argv[1] == "drop":
+ database.meta.drop_all()
else:
- meta.drop_all()
+ usage()