Skip to content

Commit

Permalink
Changed PG rename_index() to use the old ALTER TABLE ... RENAME TO sy…
Browse files Browse the repository at this point in the history
…ntax

(pretty strange syntax, but seems to work)
  • Loading branch information
stronk7 committed Oct 3, 2006
1 parent 2da4481 commit 2ddec1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/xmldb/classes/generators/postgres7/postgres7.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ddec1f

Please sign in to comment.