CRITFC / Helpdesk

Parent repository for tribal CDMS documentation and issues
1 stars 0 forks source link

Document 2.5 Database Changes #73

Open dspinosa opened 1 year ago

dspinosa commented 1 year ago

Coordinate with CTUIR on 2.5 database changes

sekoukeita commented 1 year ago

We have worked on comparing schemas of CDMS database vs NPT database (provided by Clark) to make our development environment work.

Database comparison

Overall differences

Changes to core tables and views:

Users:

Datasets:

Locations:

LocationDatasets:

LocationProjects:

Datastores:

DatasetFields:

ProjectObjectives:

Projects_VW (view):

Update the database to make the dev environment work

  1. Added Cell and Email columns to Users table to make the Login work
  2. Deleted LocationTypeId from DataStores and LocationsTable
  3. Created LocationDatasets junction table and populate it
  4. Created ProjectObjectives table
  5. Added PossibleValues and Disabled columns to DatasetFields tabled
  6. Added Quadrangle and RelateHabProject columns to Locations table
  7. Added the dataset with id = 1262 to the Datasets table. Note: this dataset is always called in Location tab.
  8. Wrote a SQL script to automate the above 7 steps.
sekoukeita commented 1 year ago

We also received a sample database of CRITFC, from Lisa, that we compared with the NPT one.

MatteoBerg commented 1 year ago