zgzgorg / iam-backend

0 stars 2 forks source link

Implement Alembic for database schema version control #12

Closed kis87988 closed 2 years ago

kis87988 commented 2 years ago

Since database schema is very important for the whole application, we want to have a record to control our schema

Let's implement the init version for schema control using Alembic.

Outcome:

  1. be able to have schema version record in our code base,
  2. be able to create migration easier (over Makefile)?
  3. be able to apply the migration for the schema update (maybe need to consider backup method too?)