source: trunk/packages/invirt-database-server/invirt-database-tables @ 1816

Last change on this file since 1816 was 1288, checked in by broder, 16 years ago

sipb-xen-database-common -> invirt-database
sipb-xen-database-server -> invirt-database-server

  • Property svn:executable set to *
File size: 350 bytes
Line 
1#!/usr/bin/env python
2
3from invirt import database
4import sys
5
6def usage():
7    print >>sys.stderr, "Usage: %s [create|drop]" %(sys.argv[0],)
8    sys.exit(-1)
9
10if len(sys.argv) == 1:
11    usage()
12
13database.connect()
14
15if sys.argv[1] == "create":
16    database.meta.create_all()
17elif sys.argv[1] == "drop":
18    database.meta.drop_all()
19else:
20    usage()
Note: See TracBrowser for help on using the repository browser.