Added vcpu_weight to models.

Fixes bug 873610.

Change-Id: Iba4952b5ef29ade2795e78b55baf41f7063ca136
This commit is contained in:
Josh Kearney 2011-10-13 14:15:37 -05:00
parent ff1263aed3
commit 6835f46738
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from sqlalchemy import Column, Integer, MetaData, Table, Boolean
from sqlalchemy import Column, Integer, MetaData, Table
meta = MetaData()

View File

@ -307,6 +307,7 @@ class InstanceTypes(BASE, NovaBase):
swap = Column(Integer, nullable=False, default=0)
rxtx_quota = Column(Integer, nullable=False, default=0)
rxtx_cap = Column(Integer, nullable=False, default=0)
vcpu_weight = Column(Integer, nullable=True)
instances = relationship(Instance,
backref=backref('instance_type', uselist=False),