[ 'changeNullableField', 'protected_titles', 'pt_reason', 'NOT NULL', true ],
[ 'addPgField', 'protected_titles', 'pt_reason_id', 'INTEGER NOT NULL DEFAULT 0' ],
[ 'addTable', 'comment', 'patch-comment-table.sql' ],
+ [ 'migrateComments' ],
[ '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' ],
+ [ 'migrateArchiveText' ],
];
}
}
}
+ 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" );