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

Enforce a unique constraint on the machine name column.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.