dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add dropSequence to postgres"
[lhc/web/wiklou.git]
/
includes
/
installer
/
PostgresUpdater.php
diff --git
a/includes/installer/PostgresUpdater.php
b/includes/installer/PostgresUpdater.php
index
c38eb6a
..
393c2e1
100644
(file)
--- a/
includes/installer/PostgresUpdater.php
+++ b/
includes/installer/PostgresUpdater.php
@@
-657,6
+657,13
@@
END;
}
}
}
}
+ protected function dropSequence( $table, $ns ) {
+ if ( $this->db->sequenceExists( $ns ) ) {
+ $this->output( "Dropping sequence $ns\n" );
+ $this->db->query( "DROP SEQUENCE $ns CASCADE" );
+ }
+ }
+
protected function renameSequence( $old, $new ) {
if ( $this->db->sequenceExists( $new ) ) {
$this->output( "...sequence $new already exists.\n" );
protected function renameSequence( $old, $new ) {
if ( $this->db->sequenceExists( $new ) ) {
$this->output( "...sequence $new already exists.\n" );