Version 3 (modified by tec, 10 years ago) (diff) |
---|
Structure of current ARSF Database
The database is made up of 9 tables, joined together by relations. See below for a diagram of the database tables and relations
The PI table is made up of the PI's name, address and their email address. The table has and internal field called 'id' which is filled in automatically and is referred to whenever a PI is linked to a project code.
PI Table | |||||
---|---|---|---|---|---|
Key | Field Name | Value Type | Constraints | Notes | |
Primary Key | id | Integer(4 Bytes) | Required | Value is automatically generated | |
pi_name | Text (variable length) | Required | |||
address | Text (variable length) | Not required as may not be known at time of entry. | |||
Text (variable length) | Not required as may not be known at time of entry. |
Structure of old ARSF ID-Key-Value database
For furture maintenance.
Indented sublevels mean the child has an "id" field matching the "value" field of the parent. If items are on the same level without a separating space, it means they share the same id. The flight_* items appear in separate groups, hence the abbreviation. ------------ piflight_pi_id pi_address pi_email pi_name piflight_flight_id flight_area flight_data_location flight_date_received flight_jday flight_letter flight_notes flight_primary_ticket flight_year flight_kmlweblink progress_change_dataset_id dataset_del_check_time dataset_flight_id flight_* dataset_number_of_lines dataset_priority dataset_priority_offset dataset_processing_progress dataset_sensor_id sensor_name sensor_type dataset_time_to_complete progress_change_date progress_change_notes progress_change_progress progress_change_user projectflight_flight_id flight_* projectflight_project_id project_code project_eufar_code project_objective project_priority project_summary secondary_ticket_flight_id flight_* secondary_ticket_number ----------- There is a 39th "kml_link" key but this only appears once, so I think it was replaced by flight_kmlweblink but not deleted.
Adding a new sensor
To add a new sensor to the status page all you need to do is to add two entries to the database:
ID | Type | Value |
f855984c-b5d2-11e3-a2a4-1803732ee31c | sensor_name | Fenix |
f855984c-b5d2-11e3-a2a4-1803732ee31c | sensor_type | Hyperspectral |
The IDs can be anything but they must match.
Attachments (1)
-
PHPDoc-16-10-2014.zip
(914.8 KB) -
added by tec 10 years ago.
PHP Documentation as of 16/10/2014
Download all attachments as: .zip