diff options
Diffstat (limited to 'includes/database/pgsql')
-rw-r--r-- | includes/database/pgsql/schema.inc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/includes/database/pgsql/schema.inc b/includes/database/pgsql/schema.inc index cbbf36dc9..00f4b9fef 100644 --- a/includes/database/pgsql/schema.inc +++ b/includes/database/pgsql/schema.inc @@ -13,14 +13,6 @@ class DatabaseSchema_pgsql extends DatabaseSchema { - public function tableExists($table) { - return (bool) db_result(db_query("SELECT COUNT(*) FROM pg_class WHERE relname = '{" . db_escape_table($table) . "}'")); - } - - public function columnExists($table, $column) { - return (bool) db_result(db_query("SELECT COUNT(pg_attribute.attname) FROM pg_class, pg_attribute WHERE pg_attribute.attrelid = pg_class.oid AND pg_class.relname = '{" . db_escape_table($table) . "}' AND attname = '" . db_escape_table($column) . "'")); - } - /** * Generate SQL to create a new table from a Drupal schema definition. * |