Commit 8f7e92a7 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

correction COPY (WIP)

parent 7b081779
Loading
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -935,9 +935,7 @@ class Bdd
        $tDdl = $source->table()->get(null, $excludes);

        $this->drop();
        $this->create([Ddl::SCHEMA => $schDdl]);
        $this->create([Ddl::SEQUENCE => $sDdl]);
        $this->create([Ddl::TABLE => $tDdl]);
        $this->create([Ddl::SCHEMA => $schDdl,Ddl::SEQUENCE => $sDdl,Ddl::TABLE => $tDdl]);
        $this->inCopy = true;

        $this->logBegin("Copie des données");
@@ -956,6 +954,18 @@ class Bdd

        $this->inCopy = false;

        if (array_key_exists(Ddl::SCHEMA, $filters)) {
            $filters[Ddl::SCHEMA]['excludes'][] = '%';
        } else {
            $filters[Ddl::SCHEMA] = ['excludes' => '%'];
        }

        if (array_key_exists(Ddl::SEQUENCE, $filters)) {
            $filters[Ddl::SEQUENCE]['excludes'][] = '%';
        } else {
            $filters[Ddl::SEQUENCE] = ['excludes' => '%'];
        }

        if (array_key_exists(Ddl::TABLE, $filters)) {
            $filters[Ddl::TABLE]['excludes'][] = '%';
        } else {