Last modified: 2013-01-25 20:11:22 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 T46352, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44352 - Create combined sql file for Translate
Create combined sql file for Translate
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-25 18:49 UTC by Sam Reed (reedy)
Modified: 2013-01-25 20:11 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-01-25 18:49:07 UTC
Is it possible for Translate to have one combined sql file for new installs?

With 13 files, it's quite annoying/confusing when setting it up on new (WMF) wikis as we can't use update.php
Comment 1 Sam Reed (reedy) 2013-01-25 18:52:34 UTC
I apparently still missed one:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT tmi_value FROM `translate_messageindex` WHERE tmi_key = '-1:version' LIMIT 1 
Function: DatabaseMessageIndex::get
Error: 1146 Table 'brwikimedia.translate_messageindex' doesn't exist (10.64.0.7)
Comment 2 Niklas Laxström 2013-01-25 19:09:51 UTC
Only 7 files are relevant for WMF, which would be the only user of this combined file.

revtag.sql
translate_groupstats.sql
translate_metadata.sql
translate_sections.sql
translate_groupreviews.sql
translate_messageindex.sql
translate_reviews.sql

Separate file can easily get out of date.
Comment 3 Sam Reed (reedy) 2013-01-25 19:31:26 UTC
(In reply to comment #2)
> Only 7 files are relevant for WMF, which would be the only user of this
> combined file.
> 
> revtag.sql
> translate_groupstats.sql
> translate_metadata.sql
> translate_sections.sql
> translate_groupreviews.sql
> translate_messageindex.sql
> translate_reviews.sql
> 
> Separate file can easily get out of date.

Maybe, but if you edit one, you edit both..

And you could use that as the default/first file in schema updates


Other than that, it might be worth creating a small script in WikimediaMaintenance (Probably better than translate itself?) to create all the tables on a specific wiki when provided with a dbname?

Could just be done in bash with mwscript, or as a more "proper" MediaWiki maintenance script
Comment 4 Sam Reed (reedy) 2013-01-25 20:11:22 UTC
https://gerrit.wikimedia.org/r/#/c/45797/

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


Navigation
Links