Commit 582b70d7 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Dernières corrections de bugs et actualisation du script d'installation

parent 366b97a6
......@@ -238,7 +238,9 @@ class DdlTable extends DdlAbstract
public function create(array $data)
{
$this->addQuery($this->makeCreate($data), 'Ajout de la table '.$data['name']);
$this->addQuery($this->makeCreateComm($data), 'Ajout de commentaire sur la table '.$data['name']);
if ($comm = $this->makeCreateComm($data)) {
$this->addQuery($comm, 'Ajout de commentaire sur la table ' . $data['name']);
}
}
......
......@@ -358,7 +358,7 @@ class Schema
{
if ($ddl instanceof self) {
$ddl = $ddl->getDdl($ddlConfig);
} else {
} elseif($mode != 'create') {
$ddl = $this->ddlFilter($ddl, $ddlConfig);
}
......@@ -537,7 +537,7 @@ class Schema
$sql .= '--------------------------------------------------' . "\n";
$sql .= '-- ' . $label . "\n";
$sql .= '--------------------------------------------------' . "\n\n";
foreach ($qs as $name => $qr) {
foreach ($qs as $qr => $description) {
if ($onlyFirstLine && false !== strpos($qr,"\n")){
$qr = substr($qr,0,strpos($qr,"\n"));
}
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment