Last modified: 2012-07-19 20:46:38 UTC
An admin_tree table should be created to be able to browse locations. It should probably contain the following items: * id - ID of the location, primkey * level - level for the location (0=adm0=country, 1=adm1=state/province/, etc) * name - Name of the location. Can be a iso code or just a regular string. * parent - The id of the parent to form the tree. NULL if top level (0 aka country) Should have keys for browsing level 0 -> level 1, etc /home/project/e/r/f/erfgoed/erfgoedbot/sql/create_table_admin_tree.sql can be modified
I find admin:tree name misleading, it makes me think in administrators. locations_tree, perhaps?
I don't want to bikeshed so this is fine with me. If we decide this is the right name we should update some other bugs.
Resolved in r759 - although I did not see this bug until after I added the SQL file. The table is currently admin_tree. If this is unacceptable, I'm happy to change it.