X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Finstaller%2FPostgresUpdater.php;h=fe8a1b1dbbef3a1361f9fdbbac37d40f8d5e6454;hb=c5b62a65cc7913f59bfdcaaa77ab5cb307272c3f;hp=91f569f0be3bf79d01a59814d6b38939c6da9eb0;hpb=c9be16a35596ff369bb5f700c20ae8dc2f7def48;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 91f569f0be..fe8a1b1dbb 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -482,6 +482,13 @@ class PostgresUpdater extends DatabaseUpdater { [ 'addPgField', 'protected_titles', 'pt_reason_id', 'INTEGER NOT NULL DEFAULT 0' ], [ 'addTable', 'comment', 'patch-comment-table.sql' ], [ 'addIndex', 'site_stats', 'site_stats_pkey', 'patch-site_stats-pk.sql' ], + [ 'addTable', 'ip_changes', 'patch-ip_changes.sql' ], + + // 1.31 + [ 'addTable', 'slots', 'patch-slots-table.sql' ], + [ 'addTable', 'content', 'patch-content-table.sql' ], + [ 'addTable', 'content_models', 'patch-content_models-table.sql' ], + [ 'addTable', 'slot_roles', 'patch-slot_roles-table.sql' ], ]; } @@ -656,6 +663,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" );