trying to fix MySQL CI

This commit is contained in:
Joby Elliott 2018-09-25 10:57:29 -06:00
parent e13aca5503
commit 1f839dba3b

View file

@ -56,7 +56,7 @@ class MySQLDriver extends AbstractDriver
}
foreach ($args['virtualColumns'] as $path => $col) {
if (@$col['primary']) {
$lines[] = "PRIMARY KEY ({$col['name']})";
$lines[] = "PRIMARY KEY (`{$col['name']}`)";
} elseif (@$col['unique'] && $as = @$col['index']) {
$lines[] = "UNIQUE KEY `{$args['table']}_{$col['name']}_idx` (`{$col['name']}`) USING $as";
} elseif ($as = @$col['index']) {