-
Notifications
You must be signed in to change notification settings - Fork 33
AddingNewColumns
Clayton Carter edited this page Feb 8, 2016
·
1 revision
Plan, plan, plan. Make sure that this data/column/property is really needed.
This will make sure that new tables/installations will be correct.
This is in HSQLUpdate and will make sure that existing databases will be up to date. Generally, the most common actions will be:
ALTER table ADD COLUMN new_col ALTER table ALTER COLUMN col RENAME TO new_col
Often, you'll have to cycle over all of the crop plan tables and update each in turn.
This is in CPSDataModelConstants.
After this, the new columns should show up in the list view and be fully viwable/editable. If the data needs to be part of the CPSCrop/Planting data structures or needs to be displayed as part of the detail or info panels, keep going. Otherwise, you're done.
This is HSQLDB.