|
MediaWiki
REL1_23
|
Class for handling updates to Postgres databases. More...


Public Member Functions | |
| addPgExtIndex ($table, $index, $type) | |
| addPgIndex ($table, $index, $type) | |
| describeIndex ($idx) | |
| fkeyDeltype ($fkey) | |
| ruleDef ($table, $rule) | |
Protected Member Functions | |
| addInterwikiType () | |
| addPgField ($table, $field, $type) | |
| addSequence ($table, $pkey, $ns) | |
| changeField ($table, $field, $newtype, $default) | |
| changeFieldPurgeTable ($table, $field, $newtype, $default) | |
| changeFkeyDeferrable ($table, $field, $clause) | |
| changeNullableField ($table, $field, $null) | |
| checkIndex ($index, $should_be, $good_def) | |
| checkIwlPrefix () | |
| checkOiDeleted () | |
| checkOiNameConstraint () | |
| checkPageDeletedTrigger () | |
| checkRevUserFkey () | |
| convertArchive2 () | |
| describeTable ($table) | |
| dropIndex ($table, $index, $patch= '', $fullpath=false) | |
| Drop an index from an existing table. | |
| getCoreUpdateList () | |
| getOldGlobalUpdates () | |
| Before 1.17, we used to handle updates via stuff like $wgExtNewTables/Fields/Indexes. | |
| renameIndex ($table, $old, $new, $skipBothIndexExistWarning=false, $a=false, $b=false) | |
| Rename an index from an existing table. | |
| renameSequence ($old, $new) | |
| renameTable ($old, $new, $patch=false) | |
| setDefault ($table, $field, $default) | |
| tsearchFixes () | |
Protected Attributes | |
| DatabasePostgres | $db |
| Handle to the database subclass. | |
Class for handling updates to Postgres databases.
Definition at line 30 of file PostgresUpdater.php.
| PostgresUpdater::addInterwikiType | ( | ) | [protected] |
Definition at line 900 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch().
| PostgresUpdater::addPgExtIndex | ( | $ | table, |
| $ | index, | ||
| $ | type | ||
| ) |
Definition at line 747 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
| PostgresUpdater::addPgField | ( | $ | table, |
| $ | field, | ||
| $ | type | ||
| ) | [protected] |
Definition at line 638 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::addPgIndex | ( | $ | table, |
| $ | index, | ||
| $ | type | ||
| ) |
Definition at line 738 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::addSequence | ( | $ | table, |
| $ | pkey, | ||
| $ | ns | ||
| ) | [protected] |
Definition at line 570 of file PostgresUpdater.php.
References DatabaseUpdater\output(), and setDefault().
| PostgresUpdater::changeField | ( | $ | table, |
| $ | field, | ||
| $ | newtype, | ||
| $ | default | ||
| ) | [protected] |
Definition at line 650 of file PostgresUpdater.php.
References $res, array(), and DatabaseUpdater\output().
| PostgresUpdater::changeFieldPurgeTable | ( | $ | table, |
| $ | field, | ||
| $ | newtype, | ||
| $ | default | ||
| ) | [protected] |
Definition at line 675 of file PostgresUpdater.php.
References $res, array(), and DatabaseUpdater\output().
| PostgresUpdater::changeFkeyDeferrable | ( | $ | table, |
| $ | field, | ||
| $ | clause | ||
| ) | [protected] |
Definition at line 760 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::changeNullableField | ( | $ | table, |
| $ | field, | ||
| $ | null | ||
| ) | [protected] |
Definition at line 713 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::checkIndex | ( | $ | index, |
| $ | should_be, | ||
| $ | good_def | ||
| ) | [protected] |
Definition at line 860 of file PostgresUpdater.php.
References array(), empty, and DatabaseUpdater\output().
| PostgresUpdater::checkIwlPrefix | ( | ) | [protected] |
Definition at line 890 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch().
| PostgresUpdater::checkOiDeleted | ( | ) | [protected] |
Definition at line 808 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::checkOiNameConstraint | ( | ) | [protected] |
Definition at line 820 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::checkPageDeletedTrigger | ( | ) | [protected] |
Definition at line 841 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
| PostgresUpdater::checkRevUserFkey | ( | ) | [protected] |
Definition at line 878 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), fkeyDeltype(), and DatabaseUpdater\output().
| PostgresUpdater::convertArchive2 | ( | ) | [protected] |
Definition at line 788 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
| PostgresUpdater::describeIndex | ( | $ | idx | ) |
| PostgresUpdater::describeTable | ( | $ | table | ) | [protected] |
Definition at line 451 of file PostgresUpdater.php.
| PostgresUpdater::dropIndex | ( | $ | table, |
| $ | index, | ||
| $ | patch = '', |
||
| $ | fullpath = false |
||
| ) | [protected] |
Drop an index from an existing table.
| string | $table | Name of the table to modify |
| string | $index | Name of the index |
| string | $patch | Path to the patch file |
| bool | $fullpath | Whether to treat $patch path as a relative or not |
Reimplemented from DatabaseUpdater.
Definition at line 853 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::fkeyDeltype | ( | $ | fkey | ) |
Definition at line 525 of file PostgresUpdater.php.
Referenced by checkRevUserFkey().
| PostgresUpdater::getCoreUpdateList | ( | ) | [protected] |
It never got refactored like it should've.
Reimplemented from DatabaseUpdater.
Definition at line 41 of file PostgresUpdater.php.
| PostgresUpdater::getOldGlobalUpdates | ( | ) | [protected] |
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.
Reimplemented from DatabaseUpdater.
Definition at line 412 of file PostgresUpdater.php.
References DatabaseUpdater\$updates, array(), as, and global.
| PostgresUpdater::renameIndex | ( | $ | table, |
| $ | oldIndex, | ||
| $ | newIndex, | ||
| $ | skipBothIndexExistWarning = false, |
||
| $ | patch = false, |
||
| $ | fullpath = false |
||
| ) | [protected] |
Rename an index from an existing table.
| string | $table | Name of the table to modify |
| string | $oldIndex | Old name of the index |
| string | $newIndex | New name of the index |
| $skipBothIndexExistWarning | Boolean: Whether to warn if both the old and the new indexes exist. | |
| string | $patch | Path to the patch file |
| bool | $fullpath | Whether to treat $patch path as a relative or not |
Reimplemented from DatabaseUpdater.
Definition at line 604 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::renameSequence | ( | $ | old, |
| $ | new | ||
| ) | [protected] |
Definition at line 580 of file PostgresUpdater.php.
References DatabaseUpdater\output().
| PostgresUpdater::renameTable | ( | $ | old, |
| $ | new, | ||
| $ | patch = false |
||
| ) | [protected] |
Definition at line 592 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
| PostgresUpdater::ruleDef | ( | $ | table, |
| $ | rule | ||
| ) |
Definition at line 546 of file PostgresUpdater.php.
| PostgresUpdater::setDefault | ( | $ | table, |
| $ | field, | ||
| $ | default | ||
| ) | [protected] |
Definition at line 704 of file PostgresUpdater.php.
References DatabaseUpdater\output().
Referenced by addSequence().
| PostgresUpdater::tsearchFixes | ( | ) | [protected] |
Definition at line 904 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch().
DatabasePostgres PostgresUpdater::$db [protected] |
Handle to the database subclass.
Reimplemented from DatabaseUpdater.
Definition at line 34 of file PostgresUpdater.php.