mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
MySQL: Support foreign keys in NDB storage
This commit is contained in:
@@ -447,7 +447,9 @@ if (!defined("DRIVER")) {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function fk_support($table_status) {
|
function fk_support($table_status) {
|
||||||
return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"]);
|
global $connection;
|
||||||
|
return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"])
|
||||||
|
|| (preg_match('~NDB~i', $table_status["Engine"]) && version_compare($connection->server_info, '5.6') >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get information about fields
|
/** Get information about fields
|
||||||
|
@@ -9,6 +9,7 @@ Send 403 for auth error
|
|||||||
Report offline and other AJAX errors (bug #419)
|
Report offline and other AJAX errors (bug #419)
|
||||||
Add links to documentation on table status page
|
Add links to documentation on table status page
|
||||||
MySQL: Use utf8mb4 if available
|
MySQL: Use utf8mb4 if available
|
||||||
|
MySQL: Support foreign keys in NDB storage
|
||||||
PostgreSQL: Materialized views
|
PostgreSQL: Materialized views
|
||||||
SQLite: Support CURRENT_* default values (bug #417)
|
SQLite: Support CURRENT_* default values (bug #417)
|
||||||
Elasticsearch: Use where in select
|
Elasticsearch: Use where in select
|
||||||
|
Reference in New Issue
Block a user