mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
add new rule
This commit is contained in:
@@ -61,18 +61,15 @@ if (preg_match('/mysql/i', $conf->db->type))
|
||||
{
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
$base = 1;
|
||||
}
|
||||
elseif ($conf->db->type == 'pgsql')
|
||||
} elseif ($conf->db->type == 'pgsql')
|
||||
{
|
||||
$sql = "SELECT conname, contype FROM pg_constraint;";
|
||||
$base = 2;
|
||||
}
|
||||
elseif ($conf->db->type == 'mssql')
|
||||
} elseif ($conf->db->type == 'mssql')
|
||||
{
|
||||
//$sqls[0] = "";
|
||||
//$base=3;
|
||||
}
|
||||
elseif ($conf->db->type == 'sqlite' || $conf->db->type == 'sqlite3')
|
||||
} elseif ($conf->db->type == 'sqlite' || $conf->db->type == 'sqlite3')
|
||||
{
|
||||
//$sql = "SELECT name, type FROM sqlite_master";
|
||||
$base = 4;
|
||||
@@ -82,8 +79,7 @@ elseif ($conf->db->type == 'sqlite' || $conf->db->type == 'sqlite3')
|
||||
if (!$base)
|
||||
{
|
||||
print $langs->trans("FeatureNotAvailableWithThisDatabaseDriver");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($base == 1)
|
||||
{
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
@@ -119,8 +115,7 @@ else {
|
||||
if (isset($obj->Engine) && $obj->Engine == "MyISAM")
|
||||
{
|
||||
print '<td><a class="reposition" href="database-tables.php?action=convert&table='.$obj->Name.'">'.$langs->trans("Convert").' InnoDB</a></td>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
print '<td> </td>';
|
||||
}
|
||||
print '<td>'.$obj->Row_format.'</td>';
|
||||
|
||||
Reference in New Issue
Block a user