source: trunk/packages/sipb-xen-database/sipb-xen-database/sipb-xen-database-tables @ 92

Last change on this file since 92 was 81, checked in by nelhage, 17 years ago

A new version with less broken init scripts

  • Property svn:executable set to *
File size: 318 bytes
Line 
1#!/usr/bin/env python
2
3from sipb_xen_database import *
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
13connect('postgres://sipb-xen@/sipb_xen')
14
15if sys.argv[1] == "create":
16    meta.create_all()
17else:
18    meta.drop_all()
Note: See TracBrowser for help on using the repository browser.