my_old_column
to my_new_column
. I tried looking through the documentation but couldn't find anything.my_old_column
to my_new_column
. I tried looking through the documentation but couldn't find anything.Yes.
A bit drastic just to rename a column.
Isn't that basically what I said?canonknipser wrote: ↑Tue Jan 22, 2019 6:23 pm So create the new column, copy the data to the new column in case of a version update (if there's plenty of data, maybe you need to do it in chunks or use a cron), and in one of the next versions simply drop the old column.
I guess you can check a version update or a new install in your extension to trigger the copy only in case of an update.
Yes, it is. Maybe it's more trustworthy the more people say it
Isn't that about data type changes? No way to specify a new column name I just checked the sources of the database tools, no way to change a column name from the dbal3Di wrote: ↑Tue Jan 22, 2019 6:48 pm Why not to use "change_columns" simply?
And yes it is documented here https://area51.phpbb.com/docs/dev/3.2.x ... l#examples
Change columns is for changing type - it specifically states not for changing name
* Change column type (not name!)