Last modified: 2013-07-25 07:07:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40371, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38371 - Impossible to install AbuseFilter with SQLite
Impossible to install AbuseFilter with SQLite
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
master
All All
: Low major (vote)
: ---
Assigned To: Dereckson
: schema-change
Depends on:
Blocks: sqlite
  Show dependency treegraph
 
Reported: 2012-07-12 22:52 UTC by Brandon Sky
Modified: 2013-07-25 07:07 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brandon Sky 2012-07-12 22:52:07 UTC
MediaWiki: 1.17.3
SQLite: 3.6.12
PHP: 5.3.0
-------------------------------------------------------
Since 1.17.3 does not have an sqlite file, I copied the sqlite file from git master to 1.17 snapshot. Tried to install, but when running update.php installation of AbuseFilter was skipped. When manually using sqlite3 to run the query, here's what I get:

SQL error near line 3: near "AUTO_INCREMENT": syntax error
SQL error near line 19: no such table: main.abuse_filter
SQL error near line 21: table abuse_filter_action already exists
SQL error near line 28: index afa_consequence already exists
SQL error near line 30: near "AUTO_INCREMENT": syntax error
SQL error near line 46: no such table: main.abuse_filter_log
SQL error near line 47: no such table: main.abuse_filter_log
SQL error near line 48: no such table: main.abuse_filter_log
SQL error near line 49: no such table: main.abuse_filter_log
SQL error near line 50: no such table: main.abuse_filter_log
SQL error near line 52: near "AUTO_INCREMENT": syntax error
SQL error near line 66: no such table: main.abuse_filter_history
SQL error near line 67: no such table: main.abuse_filter_history
SQL error near line 68: no such table: main.abuse_filter_history
SQL error near line 69: no such table: main.abuse_filter_history
Comment 1 Dereckson 2012-12-18 01:41:10 UTC
Taking this bug.

Adding dependency to SQLite tracking bug (bug 20257).
Comment 2 Dereckson 2012-12-24 14:55:10 UTC
(In reply to comment #0)
> Since 1.17.3 does not have an sqlite file, I copied the sqlite file from git
> master to 1.17 snapshot. Tried to install, but when running update.php
> installation of AbuseFilter was skipped. When manually using sqlite3 to run
> the
> query, here's what I get:
> 
> SQL error near line 3: near "AUTO_INCREMENT": syntax error
> [...]
> SQL error near line 69: no such table: main.abuse_filter_history

We don't generally use SQLite schemas but directly use the MySQL schemas.

We also have a kludge to convert SQLite to MySQL, and manually run a query could bypass this code (this would explain why you have a faulty SQLite schema).
Comment 3 Dereckson 2012-12-24 19:03:44 UTC
Gerrit change #40329
Comment 4 Gerrit Notification Bot 2013-07-10 14:46:49 UTC
Change 40329 had a related patch set uploaded by Hashar:
sqlite: make autoincrement fields primary keys

https://gerrit.wikimedia.org/r/40329
Comment 5 Gerrit Notification Bot 2013-07-10 14:50:56 UTC
Change 40329 had a related patch set uploaded by Hashar:
(bug 38371) Fixing SQL files for SQLite compatibility

https://gerrit.wikimedia.org/r/40329
Comment 6 Gerrit Notification Bot 2013-07-10 14:52:33 UTC
Change 40329 merged by jenkins-bot:
(bug 38371) Fixing SQL files for SQLite compatibility

https://gerrit.wikimedia.org/r/40329
Comment 7 Antoine "hashar" Musso (WMF) 2013-07-10 14:53:23 UTC
Merged the original change.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links