Ignore:
Timestamp:
Aug 3, 2008, 12:53:26 AM (16 years ago)
Author:
price
Message:

update sipb-xen-database-tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb-xen-database-tables

    r241 r836  
    11#!/usr/bin/env python
    22
    3 from sipb_xen_database import *
     3from invirt import database
    44import sys
    55
     
    1111    usage()
    1212
    13 connect('postgres://sipb-xen@/sipb_xen')
     13database.connect()
    1414
    1515if sys.argv[1] == "create":
    16     meta.create_all()
     16    database.meta.create_all()
    1717elif sys.argv[1] == "drop":
    18     meta.drop_all()
     18    database.meta.drop_all()
    1919else:
    2020    usage()
Note: See TracChangeset for help on using the changeset viewer.