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:
parent
803300b708
commit
a047282b0a
@ -292,7 +292,7 @@ class Connection(base.Connection):
|
|||||||
models.TraitDatetime.key, models.TraitDatetime.value,
|
models.TraitDatetime.key, models.TraitDatetime.value,
|
||||||
sa.cast(sa.null(), sa.Integer),
|
sa.cast(sa.null(), sa.Integer),
|
||||||
sa.cast(sa.null(), sa.Float(53)),
|
sa.cast(sa.null(), sa.Float(53)),
|
||||||
sa.cast(sa.null(), sa.Text))
|
sa.cast(sa.null(), sa.String(255)))
|
||||||
).union(
|
).union(
|
||||||
query.join(
|
query.join(
|
||||||
models.TraitInt,
|
models.TraitInt,
|
||||||
|
@ -15,9 +15,9 @@ import sqlalchemy as sa
|
|||||||
|
|
||||||
from ceilometer.storage.sqlalchemy import models
|
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_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(),
|
('trait_datetime', models.PreciseTimestamp(),
|
||||||
False, 't_datetime', 4)]
|
False, 't_datetime', 4)]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user