Changeset 2053
- Timestamp:
- Jan 31, 2009, 3:49:59 AM (16 years ago)
- Location:
- trunk/packages/invirt-database-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database-server/debian/changelog
r1989 r2053 1 invirt-database-server (0.0.10) unstable; urgency=low 2 3 * invirt-database-tables: populate types table 4 5 -- Greg Price <price@mit.edu> Sat, 31 Jan 2009 03:49:33 -0500 6 1 7 invirt-database-server (0.0.9) unstable; urgency=low 2 8 -
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.