From: stronk7 Date: Tue, 3 Oct 2006 15:00:55 +0000 (+0000) Subject: Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO syntax X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ddec1f4ac9c7a24867bd65a125060e2d2c50ffa;p=moodle.git Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO syntax (pretty strange syntax, but seems to work) --- diff --git a/lib/xmldb/classes/generators/postgres7/postgres7.class.php b/lib/xmldb/classes/generators/postgres7/postgres7.class.php index 2246750cae..e24e7c48f1 100644 --- a/lib/xmldb/classes/generators/postgres7/postgres7.class.php +++ b/lib/xmldb/classes/generators/postgres7/postgres7.class.php @@ -47,6 +47,9 @@ class XMLDBpostgres7 extends XMLDBgenerator { var $enum_inline_code = false; //Does the generator need to add inline code in the column definition + var $rename_index_sql = 'ALTER TABLE OLDINDEXNAME RENAME TO NEWINDEXNAME'; //SQL sentence to rename one index + //TABLENAME, OLDINDEXNAME, NEWINDEXNAME are dinamically replaced + var $rename_key_sql = null; //SQL sentence to rename one key (PostgreSQL doesn't support this!) //TABLENAME, OLDKEYNAME, NEWKEYNAME are dinamically replaced