truckerswelcome / webapp

Web application components (UI and backend)
MIT License
2 stars 2 forks source link

Change the column `approved` to `approval_status` #12

Closed iamjillsanluis closed 4 years ago

iamjillsanluis commented 4 years ago

There are three states of approval which does not fit the current column type. They are:

Task:

  1. Add new column approval_status with ENUM pending, approved, rejected
  2. Backfill the approval_status="approved" for locations with approved = 1
  3. Backfill the approval_status="pending" for locations with approved = 0

There is only very few facilities now that we don't have to worry about the rejected case, but once we have the moderation process in place, this change will streamline that process.

domcho commented 4 years ago

Pushed in d5e077d..b2eca36