After long discussions this morning, we've arrived at a detailed description of how the new db, in its first incarnation for testing purposes, will differ from the original Powell Street one. They're included below. There is some discussion still happening over the new fields in the Properties table, and whether they could be integers or have to be strings. Based on what's agreed so far, I've constructed the db itself (landscapes_mapridgedev) on the db server and imported the small amount of existing data into it. I've left the auto-increment values exactly what they were in the original dump, on the basis that we may more easily be able to distinguish data from the two locations if the records are merged at some point. I've also set up the user permissions, created reader and editor credentials, and set up the local_classes.php file for the Adaptive DB, but I haven't yet implemented a web interface for the new db because I want to be sure the details are nailed down first, and I'd also like to give it a distinct colour scheme so the RAs can tell which one they're looking at. Informal spec:
NOTES FROM SKYPE 2016-04-19 RE STRUCTURE OF DB The Maple Ridge database will be based on the existing Powell Street database. The existing data from Powell Street will be imported directly into the following tables: Locations Ethnicities Institution types The ethnicity table will be hidden, as will the Institution Types table. The Census Tracts table will be removed (it's not visible in the interface of the Powell Street db, but it's there). The Properties table would be restructured with the following fields (* = new field. [] = links to other tables): id *Description *Township District *Section *Quadrant Plan *Sketch Lot [Location] THIS WILL BE FIXED TO MAPLE RIDGE, AND HIDDEN Street number Street name [Linked titles] [Related properties] Notes The new Description field would be a plain-text field in which the RAs would insert a description of the lot which constitutes /what they would like to see/ for that lot in the drop-down list when selecting lots for a title. This would replace (possibly temporarily) an algorithm that would generate that content. If in the long run an algorithm can be specified to produce that data, the field would be hidden and the text for the drop-down list generated automatically. The following fields would be removed from Properties: Subdivision Parcel Note also that there is an old, currently-hidden field which still exists in the Powell Street db: prp_property_code I would also remove that from the new db. There is also an original field called "prp_block" which was an integer value intended to identify blocks; when it became clear that blocks were not always identifiable by a pure integer, that was replaced by the current Block (prp_block_code) field, which is a short piece of text. I would also remove the prp_block field in the new db and rename the prp_block_code field to prp_block; and remove the prp_plan field and rename prp_plan_block to prp_plan, for simplicity's sake. The following addition would be made to the Titles table: A one-to-many field called "Extinguished lots" would provide a way to formally link a title to one or more lots that cease to exist as a result of the title and its associated plan. This would enable us to track when a lot ceased to exist, something we cannot currently do in the Powell Street db. Note that if research is done backwards (i.e. starting with the present titles and working back in time), this field will be difficult to complete at the time when a title record is first created, because the "extinguished" lots will not necessarily yet be in the Properties table. However, if working forwards, the lots will have been created in order to be linked from the preceding title, so it will be easier to remember to add them. The ethnicity field would initially be hidden, but then made available later. Ditto for Instituion type. Finally, I will build the new version of the database using the latest incarnation of my back-end system, which allows for a read-only view of the data; we don't have to use it, but if we do want to share access to the data with people outside the immediate team, we can easily do that without worrying that they might edit it.