From: Chad Horohoe Date: Tue, 7 Sep 2010 12:37:13 +0000 (+0000) Subject: Per wikitech-l discussion: it would be nice if the various DBMSs we support kept... X-Git-Tag: 1.31.0-rc.0~35120 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=dffca4de5daf3e86a185860492229f328d547a0e;p=lhc%2Fweb%2Fwiklou.git 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 :) --- diff --git a/docs/database.txt b/docs/database.txt index 9962a83b0a..555347dccb 100644 --- a/docs/database.txt +++ b/docs/database.txt @@ -171,3 +171,20 @@ queries, by using an appropriate condition in the WHERE clause of an UPDATE, or by using unique indexes in combination with INSERT IGNORE. Then use the affected row count to see if the query succeeded. +------------------------------------------------------------------------ + Supported DBMSs +------------------------------------------------------------------------ + +MediaWiki is written primarily for use with MySQL. Queries are optimized +for it and its schema is considered the canonical version. However, +MediaWiki does support the following other DBMSs to varying degrees. + +* PostgreSQL +* SQLite +* Oracle +* IBM DB2 +* MSSQL + +More information can be found about each of these databases (known issues, +level of support, extra configuration) in the "databases" subdirectory in +this folder. diff --git a/docs/databases/ibm_db2.txt b/docs/databases/ibm_db2.txt new file mode 100644 index 0000000000..3c3f381c8e --- /dev/null +++ b/docs/databases/ibm_db2.txt @@ -0,0 +1,3 @@ +== See also == +*[http://www.mediawiki.org/wiki/Manual:IBM_DB2 Installation instructions] +*[http://ca.php.net/manual/en/function.db2-connect.php PHP Manual for DB2 functions] \ No newline at end of file diff --git a/docs/databases/sqlite.txt b/docs/databases/sqlite.txt new file mode 100644 index 0000000000..b8a4555380 --- /dev/null +++ b/docs/databases/sqlite.txt @@ -0,0 +1,12 @@ +SQLite shares the MySQL schema file at maintenance/tables.sql, with a set of +compatibility regexes to convert MySQL syntax to SQLite syntax: + +* BINARY() and VARBINARY() fields are converted to BLOB +* the UNSIGNED modifier is removed +* "INT" fields are converted to "INTEGER" +* ENUM is converted to BLOB +* the BINARY collation modifier is removed +* AUTO_INCREMENT is converted to AUTOINCREMENT +* Any table options are removed +* Truncated indexes are upgraded to full-width indexes +* FULLTEXT indexes are converted to ordinary indexes diff --git a/maintenance/ibm_db2/README b/maintenance/ibm_db2/README deleted file mode 100644 index 3c3f381c8e..0000000000 --- a/maintenance/ibm_db2/README +++ /dev/null @@ -1,3 +0,0 @@ -== See also == -*[http://www.mediawiki.org/wiki/Manual:IBM_DB2 Installation instructions] -*[http://ca.php.net/manual/en/function.db2-connect.php PHP Manual for DB2 functions] \ No newline at end of file diff --git a/maintenance/sqlite/README b/maintenance/sqlite/README deleted file mode 100644 index b8a4555380..0000000000 --- a/maintenance/sqlite/README +++ /dev/null @@ -1,12 +0,0 @@ -SQLite shares the MySQL schema file at maintenance/tables.sql, with a set of -compatibility regexes to convert MySQL syntax to SQLite syntax: - -* BINARY() and VARBINARY() fields are converted to BLOB -* the UNSIGNED modifier is removed -* "INT" fields are converted to "INTEGER" -* ENUM is converted to BLOB -* the BINARY collation modifier is removed -* AUTO_INCREMENT is converted to AUTOINCREMENT -* Any table options are removed -* Truncated indexes are upgraded to full-width indexes -* FULLTEXT indexes are converted to ordinary indexes