mirror of
https://github.com/moodle/moodle.git
synced 2025-07-16 20:06:30 +02:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user