MediaWiki  REL1_19
PostgresUpdater Class Reference

Class for handling updates to Postgres databases. More...

Inheritance diagram for PostgresUpdater:
Collaboration diagram for PostgresUpdater:

List of all members.

Public Member Functions

 addPgExtIndex ($table, $index, $type)
 addPgIndex ($table, $index, $type)
 describeIndex ($idx)
 fkeyDeltype ($fkey)
 ruleDef ($table, $rule)

Protected Member Functions

 addPgField ($table, $field, $type)
 addSequence ($ns)
 changeField ($table, $field, $newtype, $default)
 changeFkeyDeferrable ($table, $field, $clause)
 changeNullableField ($table, $field, $null)
 checkIpbAdress ()
 checkIwlPrefix ()
 checkOiDeleted ()
 checkOiNameConstraint ()
 checkPageDeletedTrigger ()
 checkPagelinkUniqueIndex ()
 checkRcCurIdNullable ()
 checkRevUserFkey ()
 convertArchive2 ()
 describeTable ($table)
 getCoreUpdateList ()
 getOldGlobalUpdates ()
 Before 1.17, we used to handle updates via stuff like $wgExtNewTables/Fields/Indexes.
 renameSequence ($old, $new)
 renameTable ($old, $new)
 tsearchFixes ()

Protected Attributes

 $db

Detailed Description

Class for handling updates to Postgres databases.

Since:
1.17

Definition at line 16 of file PostgresUpdater.php.


Member Function Documentation

PostgresUpdater::addPgExtIndex ( table,
index,
type 
)

Definition at line 497 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::addPgField ( table,
field,
type 
) [protected]

Definition at line 424 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::addPgIndex ( table,
index,
type 
)

Definition at line 488 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::addSequence ( ns) [protected]

Definition at line 397 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::changeField ( table,
field,
newtype,
default 
) [protected]

Definition at line 435 of file PostgresUpdater.php.

References $res, and DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::changeFkeyDeferrable ( table,
field,
clause 
) [protected]

Definition at line 510 of file PostgresUpdater.php.

References $command, and DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::changeNullableField ( table,
field,
null 
) [protected]

Definition at line 462 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 617 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 630 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 544 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 555 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 571 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 590 of file PostgresUpdater.php.

References describeIndex(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 580 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 608 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), fkeyDeltype(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 527 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 301 of file PostgresUpdater.php.

References $res, and $wgDBmwschema.

Referenced by checkPagelinkUniqueIndex().

Here is the caller graph for this function:

PostgresUpdater::describeTable ( table) [protected]

Definition at line 276 of file PostgresUpdater.php.

References $res, and $wgDBmwschema.

Definition at line 352 of file PostgresUpdater.php.

References $wgDBmwschema.

Referenced by checkRevUserFkey().

Here is the caller graph for this function:

Todo:
FIXME: Postgres should use sequential updates like Mysql, Sqlite and everybody else.

It never got refactored like it should've.

Reimplemented from DatabaseUpdater.

Definition at line 27 of file PostgresUpdater.php.

Before 1.17, we used to handle updates via stuff like $wgExtNewTables/Fields/Indexes.

This is nasty :) We refactored a lot of this in 1.17 but we want to remain back-compatible for a while. So load up these old global-based things into our update list.

Returns:
array

Reimplemented from DatabaseUpdater.

Definition at line 237 of file PostgresUpdater.php.

References DatabaseUpdater\$updates.

PostgresUpdater::renameSequence ( old,
new 
) [protected]

Definition at line 404 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::renameTable ( old,
new 
) [protected]

Definition at line 415 of file PostgresUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

PostgresUpdater::ruleDef ( table,
rule 
)

Definition at line 373 of file PostgresUpdater.php.

References $wgDBmwschema.

Definition at line 637 of file PostgresUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Here is the call graph for this function:


Member Data Documentation

PostgresUpdater::$db [protected]

Reimplemented from DatabaseUpdater.

Definition at line 21 of file PostgresUpdater.php.


The documentation for this class was generated from the following file: