I've created a MySQL table that contains a generated column:
CREATE TABLE `messages` (
`metadata` JSON NOT NULL,
`aggregate_version` INT(11) UNSIGNED GENERATED ALWAYS AS (metadata->'$._aggregate_version') STORED NOT NULL
);
How do I change aggregate_version
to be a non-generated column? The column type should stay the same.
Try:
See db-fiddle.