hackforla / peopledepot

A project to setup a datastore for people and projects at HackforLA. The link below takes you to the code documentation
https://hackforla.github.io/peopledepot/
GNU General Public License v2.0
5 stars 24 forks source link

fix(docs): create initial data scripts page #314

Open fyliu opened 1 week ago

fyliu commented 1 week ago

Fixes #313

What changes did you make?

code fixes for migration script

Why did you make the changes (we will use this info to test)?

Testing suggestions

  1. Visual check of the operations line indentation
  2. Visual check of the initial = True
  3. The below lines
    
    # run the application
    ./scripts/buildrun.sh

the SDG model table should have data

./scripts/db.sh -c "select * from core_sdg;"

reverse the latest data migration (SDG

./scripts/migrate.sh data 0002

the SDG model table should be empty

./scripts/db.sh -c "select * from core_sdg;"


Old page with problem circled
<kbd>![alt-text](https://github.com/hackforla/peopledepot/assets/1160105/6de0f0d9-7661-46ae-9c01-595386271517)</kbd>

New page with changes circled
<kbd>![alt-text](https://github.com/hackforla/peopledepot/assets/1160105/c727b0d3-9a9b-46bd-bae6-085259fc842f)</kbd>