Changeset 2991 for trunk


Ignore:
Timestamp:
Feb 17, 2010, 1:30:59 AM (14 years ago)
Author:
quentin
Message:

Enforce a unique constraint on the machine name column.

Location:
trunk/packages/invirt-database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r2798 r2991  
     1invirt-database (0.2.5) unstable; urgency=low
     2
     3  * Enforce a unique constraint on the machine name column.
     4
     5 -- Quentin Smith <quentin@mit.edu>  Wed, 17 Feb 2010 01:30:17 -0500
     6
    17invirt-database (0.2.4) unstable; urgency=low
    28
  • trunk/packages/invirt-database/python/database/models.py

    r2537 r2991  
    4343machine_table = Table('machines', meta,
    4444       Column('machine_id', Integer, primary_key=True, nullable=False),
    45        Column('name', String, nullable=False),
     45       Column('name', String, nullable=False, unique=True),
    4646       Column('description', String, nullable=False),
    4747       Column('memory', Integer, nullable=False),
Note: See TracChangeset for help on using the changeset viewer.