plugin/exo/Installation/Updater/Updater060200.php
private function createTemporaryInterGraph()
    {
        $schema = $this->connection->getSchemaManager();
        if (!$schema->tablesExist('ujm_interaction_graphic_temp')) {
            $this->log('Create ujm_interaction_graphic_temp ...');
            $this->connection->exec('
                CREATE TABLE ujm_interaction_graphic_temp (
                    id INT NOT NULL,
                    document_id INT NOT NULL,
                    PRIMARY KEY(id)
                ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
            ');
        }

        $this->connection->exec('
            INSERT INTO ujm_interaction_graphic_temp (id, document_id)
            SELECT id, document_id
            FROM ujm_interaction_graphic
        ');
    }
private function createTemporaryInterGraph()
    {
        $schema = $this->connection->getSchemaManager();
        if (!$schema->tablesExist('ujm_interaction_graphic_temp')) {
            $this->log('Create ujm_interaction_graphic_temp ...');
            $this->connection->exec('
                CREATE TABLE ujm_interaction_graphic_temp (
                    id INT NOT NULL,
                    document_id INT NOT NULL,
                    PRIMARY KEY(id)
                ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
            ');
        }

        $this->connection->exec('
            INSERT INTO ujm_interaction_graphic_temp (id, document_id)
            SELECT id, document_id
            FROM ujm_interaction_graphic
        ');
    }
private function createTemporaryInterGraph ( ) { $ schema = $ this -> connection -> getSchemaManager ( ) ; if ( ! $ schema -> tablesExist ( 'ujm_interaction_graphic_temp' ) ) { $ this -> log ( 'Create ujm_interaction_graphic_temp ...' ) ; $ this -> connection -> exec ( '
                CREATE TABLE ujm_interaction_graphic_temp (
                    id INT NOT NULL,
                    document_id INT NOT NULL,
                    PRIMARY KEY(id)
                ) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
            ' ) ; } $ this -> connection -> exec ( '
            INSERT INTO ujm_interaction_graphic_temp (id, document_id)
            SELECT id, document_id
            FROM ujm_interaction_graphic
        ' ) ; }
create temporary table for interaction_graphic in order to recover picture_id.
create temporary table for interaction_graphic in order to recover picture_id .