Changeset 836 for trunk/packages/sipb-xen-database/sipb-xen-database-tables
- Timestamp:
- Aug 3, 2008, 12:53:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database-tables
r241 r836 1 1 #!/usr/bin/env python 2 2 3 from sipb_xen_database import *3 from invirt import database 4 4 import sys 5 5 … … 11 11 usage() 12 12 13 connect('postgres://sipb-xen@/sipb_xen')13 database.connect() 14 14 15 15 if sys.argv[1] == "create": 16 meta.create_all()16 database.meta.create_all() 17 17 elif sys.argv[1] == "drop": 18 meta.drop_all()18 database.meta.drop_all() 19 19 else: 20 20 usage()
Note: See TracChangeset
for help on using the changeset viewer.