midgardproject/midgard-core — Issue #142: update_class_storage doesn't adjust column type
Author: flack
Created: 2012-02-05 19:31:06+00:00
State: open

I recently changes the type of an existing property in my schema.xml from "integer" to "unsigned integer". Then I ran

midgard_storage::update_class_storage($my_type);

Afterwards, the database was unchanged, i.e. the column didn't have unsigned set, but midgard thought it was unsigned, which lead to weird results in queries. I noticed this a while ago, too, when changing a column from integer to string. Could it be that midgard2 doesn't alter existing columns at all?