src/database/Postgres81.php 1 location
|
@@ 116-123 (lines=8) @@
|
113 |
|
return -1; |
114 |
|
} |
115 |
|
|
116 |
|
if ($dbName != $newName) { |
117 |
|
$status = $this->alterDatabaseRename($dbName, $newName); |
118 |
|
if ($status != 0) { |
119 |
|
$this->rollbackTransaction(); |
120 |
|
|
121 |
|
return -3; |
122 |
|
} |
123 |
|
} |
124 |
|
|
125 |
|
$status = $this->alterDatabaseOwner($newName, $newOwner); |
126 |
|
if ($status != 0) { |
src/database/Postgres.php 1 location
|
@@ 763-771 (lines=9) @@
|
760 |
|
return -1; |
761 |
|
} |
762 |
|
|
763 |
|
if ($dbName != $newName) { |
764 |
|
$status = $this->alterDatabaseRename($dbName, $newName); |
765 |
|
if ($status != 0) { |
766 |
|
$this->rollbackTransaction(); |
767 |
|
|
768 |
|
return -3; |
769 |
|
} |
770 |
|
$dbName = $newName; |
771 |
|
} |
772 |
|
|
773 |
|
if ($newOwner != '') { |
774 |
|
$status = $this->alterDatabaseOwner($newName, $newOwner); |