resetTableInformation example

        // it will not match the pattern that is automatically applied by         // PostgreSQL on table creation, but that's ok because         // pg_get_serial_sequence() will return our non-standard name on         // subsequent table renames.         $new_sequence = $this->ensureIdentifiersLength($new_name$field, 'seq', '_');

        $this->connection->query('ALTER SEQUENCE ' . $old_sequence . ' RENAME TO ' . $new_sequence);
      }
    }
    // Now rename the table.     $this->connection->query('ALTER TABLE {' . $table . '} RENAME TO ' . $prefixInfo['table']);
    $this->resetTableInformation($table);
  }

  /** * {@inheritdoc} */
  public function dropTable($table) {
    if (!$this->tableExists($table)) {
      return FALSE;
    }

    $this->connection->query('DROP TABLE {' . $table . '}');
    
Home | Imprint | This part of the site doesn't use cookies.