+invirt-database (0.2.1) unstable; urgency=low
+
+ * Add an admins table.
+
+ -- Evan Broder <broder@mit.edu> Fri, 27 Feb 2009 20:24:27 -0500
+
invirt-database (0.2.0) unstable; urgency=low
* Merge invirt-database-server into invirt-database.
Column('user', String, nullable=False, index=True),
PrimaryKeyConstraint('machine_id', 'user'))
+admins_table = Table('admins', meta,
+ Column('user', String, nullable=False, index=True, primary_key=True))
+
class Machine(record.Record):
_identity_field = 'name'
class Autoinstall(record.Record):
_identity_field = 'autoinstall_id'
+class Admin(record.Record):
+ _identity_field = 'user'
+
from invirt.database.owner import Owner
session.mapper(Machine, machine_table,
properties={'mirror': relation(Mirror, backref="cdroms")})
session.mapper(Autoinstall, autoinstalls_table)
session.mapper(Owner, owners_table)
+session.mapper(Admin, admins_table)
def clear_cache():
"""Clear sqlalchemy's cache