|
MediaWiki
REL1_19
|
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 | |
| 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 | |
Class for handling updates to Postgres databases.
Definition at line 16 of file PostgresUpdater.php.
| PostgresUpdater::addPgExtIndex | ( | $ | table, |
| $ | index, | ||
| $ | type | ||
| ) |
Definition at line 497 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::addPgField | ( | $ | table, |
| $ | field, | ||
| $ | type | ||
| ) | [protected] |
Definition at line 424 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::addPgIndex | ( | $ | table, |
| $ | index, | ||
| $ | type | ||
| ) |
Definition at line 488 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::addSequence | ( | $ | ns | ) | [protected] |
Definition at line 397 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::changeField | ( | $ | table, |
| $ | field, | ||
| $ | newtype, | ||
| $ | default | ||
| ) | [protected] |
Definition at line 435 of file PostgresUpdater.php.
References $res, and DatabaseUpdater\output().

| PostgresUpdater::changeFkeyDeferrable | ( | $ | table, |
| $ | field, | ||
| $ | clause | ||
| ) | [protected] |
Definition at line 510 of file PostgresUpdater.php.
References $command, and DatabaseUpdater\output().

| PostgresUpdater::changeNullableField | ( | $ | table, |
| $ | field, | ||
| $ | null | ||
| ) | [protected] |
Definition at line 462 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::checkIpbAdress | ( | ) | [protected] |
Definition at line 617 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::checkIwlPrefix | ( | ) | [protected] |
Definition at line 630 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::checkOiDeleted | ( | ) | [protected] |
Definition at line 544 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::checkOiNameConstraint | ( | ) | [protected] |
Definition at line 555 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::checkPageDeletedTrigger | ( | ) | [protected] |
Definition at line 571 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::checkPagelinkUniqueIndex | ( | ) | [protected] |
Definition at line 590 of file PostgresUpdater.php.
References describeIndex(), and DatabaseUpdater\output().

| PostgresUpdater::checkRcCurIdNullable | ( | ) | [protected] |
Definition at line 580 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::checkRevUserFkey | ( | ) | [protected] |
Definition at line 608 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), fkeyDeltype(), and DatabaseUpdater\output().

| PostgresUpdater::convertArchive2 | ( | ) | [protected] |
Definition at line 527 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

| PostgresUpdater::describeIndex | ( | $ | idx | ) |
Definition at line 301 of file PostgresUpdater.php.
References $res, and $wgDBmwschema.
Referenced by checkPagelinkUniqueIndex().

| PostgresUpdater::describeTable | ( | $ | table | ) | [protected] |
Definition at line 276 of file PostgresUpdater.php.
References $res, and $wgDBmwschema.
| PostgresUpdater::fkeyDeltype | ( | $ | fkey | ) |
Definition at line 352 of file PostgresUpdater.php.
References $wgDBmwschema.
Referenced by checkRevUserFkey().

| PostgresUpdater::getCoreUpdateList | ( | ) | [protected] |
It never got refactored like it should've.
Reimplemented from DatabaseUpdater.
Definition at line 27 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 237 of file PostgresUpdater.php.
References DatabaseUpdater\$updates.
| PostgresUpdater::renameSequence | ( | $ | old, |
| $ | new | ||
| ) | [protected] |
Definition at line 404 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::renameTable | ( | $ | old, |
| $ | new | ||
| ) | [protected] |
Definition at line 415 of file PostgresUpdater.php.
References DatabaseUpdater\output().

| PostgresUpdater::ruleDef | ( | $ | table, |
| $ | rule | ||
| ) |
Definition at line 373 of file PostgresUpdater.php.
References $wgDBmwschema.
| PostgresUpdater::tsearchFixes | ( | ) | [protected] |
Definition at line 637 of file PostgresUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

PostgresUpdater::$db [protected] |
Reimplemented from DatabaseUpdater.
Definition at line 21 of file PostgresUpdater.php.