Go to the documentation of this file.
36 return extension_loaded(
'pdo_sqlite' );
49 throw new MWException(
"Can't check SQL syntax: SQLite not found" );
51 if ( !is_array(
$files ) ) {
55 $allowedTypes = array_flip(
array(
65 $err = $db->sourceFile(
$file );
71 $tables = $db->query(
"SELECT name FROM sqlite_master WHERE type='table'", __METHOD__ );
73 if ( strpos( $table->name,
'sqlite_' ) === 0 ) {
77 $columns = $db->query(
"PRAGMA table_info({$table->name})", __METHOD__ );
79 if ( !isset( $allowedTypes[strtolower( $col->type )] ) ) {
81 return "Table {$table->name} has column {$col->name} with non-native type '{$col->type}'";
86 return $e->getMessage();
This class contains code common to different SQLite-related maintenance scripts.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist & $tables
This class allows simple acccess to a SQLite database independently from main database settings.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Database error base class.
static isPresent()
Checks whether PHP has SQLite support.
if(PHP_SAPI !='cli') $file
static checkSqlSyntax( $files)
Checks given files for correctness of SQL syntax.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as