aboutsummaryrefslogtreecommitdiffstats
path: root/includes/db/CloneDatabase.php
Commit message (Collapse)AuthorAgeFilesLines
* Reverted r108743 per CR comment. This should at least be discussed first.Aaron Schulz2012-01-121-11/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108745
* Kill "* @return void"Sam Reed2012-01-121-14/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108743
* some more oracle-phpunit-fu (should not affect non-oracle)Jure Kajzer2011-11-101-1/+1
| | | | | | | | | | | * CloneDatabase - already droping tables in internal function, removed duplicate action * DatabaseOracle - stopped ignoring "temporary" parameter * added two parameters to phpunit (use-normal-tables & reuse-db), default actions stay the same * with reuse-db oracle phpunit test run on oracle down to 1m 20s ;) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/102652
* Followup r96369: update child classes and a few callersChad Horohoe2011-09-061-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96370
* $newTablePrefix must be passed. All callers are okChad Horohoe2011-05-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89150
* More documentation stuffsSam Reed2011-05-251-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/88816
* Change the duplicateTableStructure() to use the original names.Platonides2011-04-121-3/+3
| | | | | | | | | | | It is now duplicateTableStructure() duty to addIdentifierQuotes() them. Fixed bug for mysql < 4.1 where the new name would be quoted twice. Always quote identifier in Oracle, doing otherwise seems a bug (can someone confirm?) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85906
* correct wfDebug() calls added in r79272 & r79368Antoine Musso2011-03-201-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/84371
* I made MySQL work, and broke SQLite in the process. I fix SQLite, and made ↵X!2010-12-311-1/+1
| | | | | | | MySQL break. Fixing MySQL again, hoping that SQLite works too. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79371
* More work on getting SQLite to work with unit tests. DB Prefix changing is ↵X!2010-12-311-9/+10
| | | | | | | now static to allow for external classes to change it. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79368
* Follow up r79314.Platonides2010-12-311-3/+3
| | | | | | | | | | | | | | The table to drop is the NEW one, the one that is going to be recreated. Sure, the prefix was changed, which means that we need just the table base. The r79314 behavior was to perform the following: DROP /* CloneDatabase::cloneTableStructure */ TABLE IF EXISTS `archive` CREATE /* DatabaseMysql::duplicateTableStructure */ TEMPORARY TABLE `unittest_archive` (LIKE `archive`) Luckily, it failed there as it didn't find the table it had just dropped. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79337
* Use $oldTableName in CloneDatabase. The dropTable() appends the prefix, so ↵X!2010-12-311-4/+5
| | | | | | | $oldTableName becomes $newTableName Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79314
* -Destroy the DB automatically when initting the DBX!2010-12-301-0/+6
| | | | | | | | -Add $force option to wfSetVar -More work on getting SQLite to work Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79272
* Add function return type hint to wfGetLBFactorySam Reed2010-12-301-1/+1
| | | | | | | More parameter documentation to CloneDatabase Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79229
* Array to arraySam Reed2010-12-301-1/+14
| | | | | | | Add some function documentation Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79228
* Followup to r79094, PG handles temporary tables correctly so you dont need ↵OverlordQ2010-12-281-1/+1
| | | | | | | to do cleanup Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79138
* Fix hardcoded debugging from r79093Chad Horohoe2010-12-281-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79135
* Followup r79093: Move DROP TABLE code to Database classes and properly ↵Chad Horohoe2010-12-281-10/+15
| | | | | | | rename back to original table prefix in destroyDatabase() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79094
* Refactor table cloning code into its own class so it can maybe be used by ↵Chad Horohoe2010-12-281-0/+131
things other than the parser tests Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79093