correct column types in events

in migration script, we incorrectly set string traits to Text and
float traits to Float. this fixes it so they point to String(255)
and Float(53) as they did originally

Change-Id: Ie06781a42ec7384d88bea8498140e52f109e9f7e
Closes-Bug: #1423710
This commit is contained in:
gordon chung 2015-02-19 17:06:02 -05:00
parent 803300b708
commit a047282b0a
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@ class Connection(base.Connection):
models.TraitDatetime.key, models.TraitDatetime.value,
sa.cast(sa.null(), sa.Integer),
sa.cast(sa.null(), sa.Float(53)),
sa.cast(sa.null(), sa.Text))
sa.cast(sa.null(), sa.String(255)))
).union(
query.join(
models.TraitInt,

View File

@ -15,9 +15,9 @@ import sqlalchemy as sa
from ceilometer.storage.sqlalchemy import models
tables = [('trait_text', sa.Text, True, 't_string', 1),
tables = [('trait_text', sa.String(255), True, 't_string', 1),
('trait_int', sa.Integer, False, 't_int', 2),
('trait_float', sa.Float, False, 't_float', 3),
('trait_float', sa.Float(53), False, 't_float', 3),
('trait_datetime', models.PreciseTimestamp(),
False, 't_datetime', 4)]