diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-19 12:23:49 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-19 12:23:49 -0700 |
commit | aeb1c23a2f2ad276e1051b81ae2b5c844e86c322 (patch) | |
tree | aef9616632f8454f519c63b1e2e93bace70cfecc /lib/pgsqlschema.php | |
parent | e07254d15b96e6c312543a15725bef4de1c2d8f2 (diff) |
fix index drop on pg
Diffstat (limited to 'lib/pgsqlschema.php')
-rw-r--r-- | lib/pgsqlschema.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/pgsqlschema.php b/lib/pgsqlschema.php index 599f7ffca..d50e35f66 100644 --- a/lib/pgsqlschema.php +++ b/lib/pgsqlschema.php @@ -335,6 +335,20 @@ class PgsqlSchema extends Schema } /** + * Append an SQL statement to drop an index from a table. + * Note that in PostgreSQL, index names are DB-unique. + * + * @param array $statements + * @param string $table + * @param string $name + * @param array $def + */ + function appendDropIndex(array &$statements, $table, $name) + { + $statements[] = "DROP INDEX $name"; + } + + /** * Quote a db/table/column identifier if necessary. * * @param string $name |