- Timestamp:
- Jan 31, 2009, 3:49:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database-server/invirt-database-tables
r1288 r2053 11 11 usage() 12 12 13 def create(): 14 database.meta.create_all() 15 session = database.session() 16 session.begin() 17 session.save(database.Type(type_id='linux-hvm', description='HVM', 18 hvm='t', apic='t', acpi='t', pae='t')) 19 session.save(database.Type(type_id='linux', description='ParaVM', 20 hvm='f', apic='f', acpi='f', pae='f')) 21 session.commit() 22 13 23 database.connect() 14 24 15 25 if sys.argv[1] == "create": 16 database.meta.create_all()26 create() 17 27 elif sys.argv[1] == "drop": 18 28 database.meta.drop_all()
Note: See TracChangeset
for help on using the changeset viewer.