Merge "Trait_* models have incorrect type for key"

This commit is contained in:
Jenkins 2015-05-06 20:12:32 +00:00 committed by Gerrit Code Review
commit c004457d9f
2 changed files with 11 additions and 11 deletions

View File

@ -93,25 +93,25 @@ class Connection(base.Connection):
- TraitInt
- int trait value
- { event_id: event -> event.id
key: trait type
key: trait name
value: integer value
}
- TraitDatetime
- int trait value
- datetime trait value
- { event_id: event -> event.id
key: trait type
key: trait name
value: datetime value
}
- TraitText
- int trait value
- text trait value
- { event_id: event -> event.id
key: trait type
key: trait name
value: text value
}
- TraitFloat
- int trait value
- float trait value
- { event_id: event -> event.id
key: trait type
key: trait name
value: float value
}

View File

@ -343,7 +343,7 @@ class TraitText(Base):
Index('ix_trait_text_event_id_key', 'event_id', 'key'),
)
event_id = Column(Integer, ForeignKey('event.id'), primary_key=True)
key = Column(Integer, primary_key=True)
key = Column(String(255), primary_key=True)
value = Column(Text)
@ -355,7 +355,7 @@ class TraitInt(Base):
Index('ix_trait_int_event_id_key', 'event_id', 'key'),
)
event_id = Column(Integer, ForeignKey('event.id'), primary_key=True)
key = Column(Integer, primary_key=True)
key = Column(String(255), primary_key=True)
value = Column(Integer)
@ -367,7 +367,7 @@ class TraitFloat(Base):
Index('ix_trait_float_event_id_key', 'event_id', 'key'),
)
event_id = Column(Integer, ForeignKey('event.id'), primary_key=True)
key = Column(Integer, primary_key=True)
key = Column(String(255), primary_key=True)
value = Column(Float(53))
@ -379,5 +379,5 @@ class TraitDatetime(Base):
Index('ix_trait_datetime_event_id_key', 'event_id', 'key'),
)
event_id = Column(Integer, ForeignKey('event.id'), primary_key=True)
key = Column(Integer, primary_key=True)
key = Column(String(255), primary_key=True)
value = Column(PreciseTimestamp())