Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO syntax

(pretty strange syntax, but seems to work)
This commit is contained in:
stronk7
2006-10-03 15:00:55 +00:00
parent 2da448161a
commit 2ddec1f4ac

View File

@@ -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