Update Activity Database
Note
This section is draft, pending development of the Activity Database 2.0.
How to Update
Add field
Do not add fields directly to the Activity Database Google Sheet. Add fields to the FormGen sheet. The new field will be appended to the Activity Database Google Sheet. Column order in this sheet does not matter.
- Open FormGen
- Add a row in the appropriate location
- Update all field attributes
- Insert a test record (DO NOT edit an existing record) to see the new field in the Activity Database
- Delete the inserted empty record
- Create a named range for the new column
- Select the column in the Activity Database Google Sheet
- Type the name in the upper left box; replace spaces with underscores
- Update the
Push Query - Alltab in the Activity Database with the new field - Add the field to the Queries for any applications you need it in
- For the Thematic Database:
- Add the field to the
Query - Thematic Database Queryfunction range - Add the field to the activity data
_import_activitiesquery - If needed, create a new tab to normalize any comma or pipe separated field
- Log the field in the
DEFINITIONStab - Run the
generate_activity_sqlfunction in the Data Steward Admin Tool - Open PgAdmin
- Create a new column to store the data (or simply drop the affected tables to reload with the new schema for tables using truncate and load)
- Reload all tabular data
- Add the field to the