Ignore:
Timestamp:
Feb 17, 2009, 3:45:24 AM (16 years ago)
Author:
broder
Message:

Make the default values in the owners class explicit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/python/database/models.py

    r2135 r2150  
    8989owners_table = Table('owners', meta,
    9090       Column('owner_id', String, primary_key=True, nullable=False),
    91        Column('ram_quota_total', Integer, nullable=True),
    92        Column('ram_quota_single', Integer, nullable=True),
    93        Column('disk_quota_total', Integer, nullable=True),
    94        Column('disk_quota_single', Integer, nullable=True),
    95        Column('vms_quota_total', Integer, nullable=True),
    96        Column('vms_quota_active', Integer, nullable=True))
     91       Column('ram_quota_total', Integer, nullable=True, default=None),
     92       Column('ram_quota_single', Integer, nullable=True, default=None),
     93       Column('disk_quota_total', Integer, nullable=True, default=None),
     94       Column('disk_quota_single', Integer, nullable=True, default=None),
     95       Column('vms_quota_total', Integer, nullable=True, default=None),
     96       Column('vms_quota_active', Integer, nullable=True, default=None))
    9797
    9898machine_access_table = Table('machine_access', meta,
Note: See TracChangeset for help on using the changeset viewer.