Commit 559af38b authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Petit bug si la position n'était pas fournie corrigé

parent f4953835
Loading
Loading
Loading
Loading
+4 −1
Changes for admin/src/BddAdmin/Driver/Oracle/TableManager.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -203,7 +203,10 @@ class TableManager extends AbstractManager implements TableManagerInterface
        $cols    = [];
        $columns = $data['columns'];
        uasort($columns, function ($a, $b) {
            return $a['position'] > $b['position'];
            $apos = isset($a['position']) ? $a['position'] : 1;
            $bpos = isset($b['position']) ? $b['position'] : 1;

            return $apos > $bpos;
        });
        foreach ($columns as $column) {
            $cp = ['"' . $column['name'] . '"', $this->makeColumnType($column)];