My intention is change the name of column not the his format.mrgoldy wrote: ↑Sun Jan 13, 2019 3:06 pmIt's better to not run the SQL query directly from your migration file: https://github.com/PGreca/pgsocial/blob ... 03.php#L23
Altering SQL queries may differ per driver class.
Instead, use the migration tool for altering an existing column: https://area51.phpbb.com/docs/dev/3.2.x ... l#examplesHowever, you are trying to 'alter' a column to
Code: Select all
'change_columns' => array( $this->table_prefix . 'groups' => array( 'group_legend' => array('UINT', 0), ), ),
UINT:11(here) which is already set up to be so (see here). And then you create another column with the same name here.
As i have seen not is possible change the name from the tool migration, but only his format.
I read in the guide is better not change oldest migration file (in this case in migration 01), so i modifided the name column on the new migration (03) and for add the new column.
But at this point, if my ext is an Alpha i can edit my migration (01 - 03) for solve all this?
(excuse me always for my english)