forked from GNUsocial/gnu-social
$config['db']['mysql_foreign_keys'] option to experimentally enable foreign keys on MySQL. (Would only work on InnoDB tables, may explode, etc)
This commit is contained in:
@@ -400,8 +400,9 @@ class MysqlSchema extends Schema
|
||||
$col['type'] = $this->mapType($col);
|
||||
unset($col['size']);
|
||||
}
|
||||
// @fixme add foreign-key support for MySQL
|
||||
unset($tableDef['foreign keys']);
|
||||
if (!common_config('db', 'mysql_foreign_keys')) {
|
||||
unset($tableDef['foreign keys']);
|
||||
}
|
||||
return $tableDef;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user