Last modified: 2012-07-19 20:47:09 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 T40312, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38312 - Make a script to fill the admin_tree table
Make a script to fill the admin_tree table
Status: RESOLVED FIXED
Product: Wiki Loves Monuments
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 38311
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-11 16:10 UTC by Maarten Dammers
Modified: 2012-07-19 20:47 UTC (History)
1 user (show)

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


Attachments

Description Maarten Dammers 2012-07-11 16:10:08 UTC
A script should be created to be run once a day. This script should take monuments_all and use this to fill the admin_tree table.

Monuments_all contains adm0-4. Level 0:

mysql> SELECT DISTINCT(adm0) FROM `monuments_all`;
+------+
| adm0 |
+------+
| ad   |
| at   |
| be   |
| ch   |
| dk   |
| ee   |
| es   |
| fr   |
| gb   |
| ie   |
| it   |
| lu   |
| mt   |
| nl   |
| no   |
| pl   |
| pt   |
| se   |
| sk   |
| us   |
+------+

And deeper

mysql> SELECT DISTINCT(adm1) FROM `monuments_all` WHERE adm0='nl';
+-------+
| adm1  |
+-------+
| NL-UT |
| NL-NB |
| NL-ZH |
| NL-GE |
| NL-NH |
| NL-LI |
| NL-ZE |
| NL-GR |
| NL-FR |
| NL-OV |
| NL-DR |
| NL-FL |
+-------+
12 rows in set (1.21 sec)
Comment 1 Arthur Richards 2012-07-19 20:47:09 UTC
resolved in r759.

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


Navigation
Links