~jaypipes/glance/api-image-format

« back to all changes in this revision

Viewing changes to glance/registry/db/models.py

  • Committer: jaypipes at gmail
  • Date: 2011-02-23 22:16:32 UTC
  • Revision ID: jaypipes@gmail.com-20110223221632-ue4do0ur1ciwr50v
Adds disk_format and container_format to Image, and
removes the type column.

Needs migrate script, but having trouble getting sqlalchemy
migrate to work with any call to drop_column(). :(

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
    id = Column(Integer, primary_key=True)
97
97
    name = Column(String(255))
98
 
    type = Column(String(30))
 
98
    disk_format = Column(String(20))
 
99
    container_format = Column(String(20))
99
100
    size = Column(Integer)
100
101
    status = Column(String(30), nullable=False)
101
102
    is_public = Column(Boolean, nullable=False, default=False)