PERSISTENT is STORED in MySQL

This commit is contained in:
Joby Elliott 2018-09-25 11:20:17 -06:00
parent 8677ce5857
commit ddce5a8275

View file

@ -54,7 +54,8 @@ class MySQLDriver extends AbstractDriver
foreach ($args['virtualColumns'] as $path => $col) {
$line = "`{$col['name']}` {$col['type']} GENERATED ALWAYS AS (".$this->expandPath($path).")";
if (@$col['primary']) {
$line .= ' PERSISTENT';
//this needs to be "PERSISTENT" for MariaDB -- I guess there are going to be two drivers now
$line .= ' STORED';
} else {
$line .= ' VIRTUAL';
}