adminer icon indicating copy to clipboard operation
adminer copied to clipboard

Editting virtual columns

Open unix4you2 opened this issue 6 months ago • 1 comments

Hi!

When you have virtual columns (calculated) in your table you cant edit them with the option "Alter table"

Steps to reproduce:

  1. Create a table with VIRTUAL columns like this:
CREATE TABLE `my_table` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(100) NOT NULL,
  `priority` varchar(20) NOT NULL,
  `clasification` varchar(50) NOT NULL,
  `clasification_plus_type` varchar(255) GENERATED ALWAYS AS (concat(`clasification`,': ',`type`)) VIRTUAL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
  1. Try to use the "Alter table" option in Adminer
  2. You cant update or change how the column is calculated

Best regards

unix4you2 avatar Sep 14 '25 13:09 unix4you2

I couldn't reproduce it. Please describe “cant update or change” and attach some screenshots.

Image

vrana avatar Oct 26 '25 14:10 vrana