function DatabaseSchema_sqlite::dropPrimaryKey

Overrides DatabaseSchema::dropPrimaryKey

File

includes/database/sqlite/schema.inc, line 634

Class

DatabaseSchema_sqlite

Code

public function dropPrimaryKey($table) {
    $old_schema = $this->introspectSchema($table);
    $new_schema = $old_schema;
    if (empty($new_schema['primary key'])) {
        return FALSE;
    }
    unset($new_schema['primary key']);
    $this->alterTable($table, $old_schema, $new_schema);
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.