Matěj Grabovský
c4a741d7f6
Create index only if it doesn't already exist
2011-01-26 10:33:21 +00:00
Chad Horohoe
2635ee9a32
Fix r69721: SQLite yells at you if you try to drop an index that doesn't exist; which might be the case considering how many times these indexes were renamed and dropped. Per r73758, put IF EXISTS on them--it certainly can't hurt.
2010-11-03 12:41:46 +00:00
Max Semenik
68b39fbd23
Revert r74273 per CR: this patch is not needed because our SQL conversion magic handles the MySQL version just fine, and I've tweaked it in r74428 to look nicer
2010-10-07 16:20:20 +00:00
Antoine Musso
575711fde2
Profiling table (optional) for SQLite
2010-10-04 20:55:14 +00:00
Max Semenik
97efc5c6c3
A few index-related fixes in SQLite DB patches, ping r66920.
...
The need to drop index patch-rename-iwl_prefix.sql arose from development versions that had discrepancies between tables.sql and updater. Let's just DROP IF EXISTS it.
2010-09-25 17:45:00 +00:00
Max Semenik
bb65748dc9
Follow-up r71118: forgot to re-add the index
2010-09-12 18:00:28 +00:00
Max Semenik
219717307e
Follow-up r72870: fixed patch file so that it actually works, switched it to native SQLite types
2010-09-12 17:48:56 +00:00
Alexandre Emsenhuber
86eb53c8ca
GOOD BYE, dear old updaters.inc!
...
* Moved update functions to MysqlUpdater and DatabaseUpdater (and archive() to install-utils.inc just in case someone is still using it)
* Moved update_row_exists() to DatabaseUpdater
* Added cl_collation patch for SQLite, was missing and also run collationUpdate.php while updation SQLite
2010-09-12 16:24:03 +00:00
Alexandre Emsenhuber
2b98748b6a
Added SQLite version of the patch since the other one has syntax errors on SQLite
2010-09-12 12:28:21 +00:00
Chad Horohoe
dffca4de5d
Per wikitech-l discussion: it would be nice if the various DBMSs we support kept all of their docs in one place. So make a place and move two already existing READMEs there. Add some info to /docs/database.txt about this as well. Postgres, Oracle, Mssql need to add some info kthnx :)
2010-09-07 12:37:13 +00:00
Max Semenik
0ce11ce403
Fixed SQLite updater broken by r69542
2010-08-15 14:49:07 +00:00
Roan Kattouw
61de1b9006
Rename the iwl_prefix_from_title index (again) to iwl_prefix_title_from and change the field order accordingly. Fixed r66892 which inserted iwl_from into the index (which was a good thing) but put it in the wrong place. I went out of my way to make sure the index isn't dropped and recreated needlessly, but since I don't know how to do the drop-index-if-exists thing in the Postgres updater, I left that out. The Postgres updater will now create the new index without dropping any old incarnations if present. I did create the patch files with the DROP INDEX statements to make it easier to add this behavior. Also tweak ApiQueryIWBacklinks to use this index properly.
2010-07-22 08:52:58 +00:00
Mark A. Hershberger
572bfe1228
* re r69332, r64217: complete removal of WikiSysop for CLI installer
...
* Incorporate new Installer::performInstallation() function
* Update SQLite schema tables to insert data to updatelog correctly
2010-07-18 18:52:05 +00:00
Max Semenik
ca2371de95
follow-up to r66892: fix update SQL on on SQLite
2010-05-26 14:29:53 +00:00
Max Semenik
9b257aa857
Updated link to docs
2010-01-17 13:35:26 +00:00
Max Semenik
3a15dc11f6
Updated comment in accordance with r58030
2009-12-17 12:53:05 +00:00
Max Semenik
7b7ed1034d
Whee, a debugging piece of SQL had made it through in r59932
2009-12-11 23:30:08 +00:00
Max Semenik
5445d274c1
Fixed updater borkage on SQLite from r59925 and r59926, tweaked explanation for this change in updaters.inc for portability. See my comments for these revisions in CodeReview for motivation.
2009-12-10 17:42:12 +00:00
OverlordQ
7f5332a3b7
Addendum to r59925, fix remaining straggling files that set rc_time to int
2009-12-10 10:10:56 +00:00
OverlordQ
ff2d149795
Followup to r59869, add to MySQL section, and copy patch to SQLite directory
2009-12-10 05:39:45 +00:00
Max Semenik
798cfc5ade
Merge SQLite search from branches/sqlite/ to trunk
2009-10-29 16:19:35 +00:00
Max Semenik
fa1640fee3
Finished bringing SQLite updater in par with MySQL
2009-10-22 18:04:08 +00:00
Max Semenik
b713592d39
SQLite updater: don't keep the old tables hanging around renamed after creating indexes, we explicitly tell people to backup before upgrading:D
2009-10-22 17:48:09 +00:00
Max Semenik
8cac971d1c
Separate patch-rd_interwiki.sql for SQLite
2009-10-22 16:58:13 +00:00
Tim Starling
f058162bc5
* Preserve usertext_timestamp index name for MySQL, prefix it for SQLite. Issues remain on the experimental non-installable DBMSes.
...
* Clean up some E_STRICT issues
2009-01-15 14:20:28 +00:00
Tim Starling
4124558d7b
For backport to 1.14.
...
* Made the upgrader work with SQLite
* Implemented missing schema info functionality in DatabaseSqlite
* Merged the SQLite and MySQL schemas into the one file with the help of some replaceVars() hacks.
* Moved all primary key definitions to the field definition, moved all indexes to CREATE INDEX statements, for best SQLite compatibility.
* Made all autoincrement fields primary keys, as required by SQLite.
* Removed meaningless buzzword from the category table comment
* tables.sql: s/'0'/0/
* In SQLite the index names have DB scope. Renamed archive.usertext_timestamp, user_newtalk.user_id, user_newtalk.user_ip
* SQLite does not support UPDATE with LIMIT by default. Removed all instances I could find.
* Made query errors work in the installer.
* Fixed DatabaseSqlite::lastErrno(), made SQLITE_SCHEMA errors automatically reissue the query as suggested on sqlite-users. Otherwise upgrade breaks.
* Removed miscellaneous status information from getServerVersion(), that's not the place to put it
2009-01-15 06:56:58 +00:00
Aran Dunkley
892f863094
replace with newly generated version
2008-05-11 06:12:07 +00:00
Aran Dunkley
6fc766cc21
keep schema in maintenance same as postgresql
2008-05-09 12:08:28 +00:00