code4sac / learning-blocks

Learning Blocks Student Information System
https://lbsis.org
MIT License
5 stars 20 forks source link

Refactor orgs model #41

Closed natebass closed 8 months ago

natebass commented 8 months ago

This should be a working version of the Org model using the Orgs naming convention.

The rule is that the model's name has to match the table name. So, if we want the table name to be "orgs", then we need to call the model Orgs.

netlify[bot] commented 8 months ago

Deploy Preview for learningblocks failed.

Name Link
Latest commit 269822a5ee6d5c0e40b1d9cdb99c563bbd2cd388
Latest deploy log https://app.netlify.com/sites/learningblocks/deploys/6542e9f0024b4000088e9044
natebass commented 8 months ago

I added a migration for the academicsessions table.

The primary keys might need to be adjusted for academicsessions. I am getting this error:

psycopg2.errors.NotNullViolation: null value in column "id" of relation "academicsessions" violates not-null constraint
DETAIL:  Failing row contains (null, 994, active, null, Sample Academic Session, semester, null, null, 0).