Changeset 2150


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

Make the default values in the owners class explicit.

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

Legend:

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

    r2145 r2150  
     1invirt-database (0.1.5) unstable; urgency=low
     2
     3  * Make the default values on the owners table explicit
     4    (Note: This is a NOOP, since a nullable field with no otherwise
     5    specified default defaults to NULL)
     6
     7 -- Evan Broder <broder@mit.edu>  Tue, 17 Feb 2009 03:36:47 -0500
     8
    19invirt-database (0.1.4) unstable; urgency=low
    210
  • 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.