anitab-org / anitab-org/mentorship-backend

Write on README how to create and run db migration script

Đang mở
#996 3 bình luận 0 reaction 1 người được giao Được @mtreacy002 nhận Xem trên GitHub
Category: Documentation/Training
Ngôn ngữ chính
Python
Star
200
Fork
449
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Description

As a developer,
I need steps to create an Alembic migration script,
so that I can know how to create migration script and upgrade database schema version.

Write couple steps concisely on README to explain how to create and run migration script

**tip:** If you are inexperienced with alembic migrations, it might be worth it to try this out your self, by changing a property in a database model (sqlalchemy) and create script + upgrade/downgrade versions. If you use `local` env variable, your db will be sqlite based, so easily deleted and created.

**References:**
- https://github.com/anitab-org/mentorship-backend/pull/335 this PR introduced support to flask migrate, so "how do I use it?" section might help with this.
- https://flask-migrate.readthedocs.io/en/latest/

## Acceptance Criteria
### Update [Required]
- [ ] Steps to do this are concisely explained on a separate README section

## Definition of Done
- [ ] All of the required items are completed.
- [x] Approval by 1 mentor.

## Estimation
1 hours

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.