[CHORE]: Add down migrations for 002–012

Đang mở
#184 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
postgresql, sql
Lĩnh vực
database

Hướng nghiên cứu

Start in server/migrations/ by reading the _up.sql files for 002–012 and the existing 001_create_users_down.sql. Add matching down files that reverse each migration using IF EXISTS; check the result by applying all up files and then all down files in reverse order on a fresh postgres:16-alpine. Done means the rollback completes successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: server chore good first issue

Context

Only 001_create_users_down.sql exists, so there's no way to roll back a schema change during development.

What to do

  • Add NNN_*_down.sql for 002–012 that undo the matching _up.sql (drop the tables, columns and indexes it added), using IF EXISTS.
  • Check them locally: apply all up files, then all down files in reverse order, on a fresh postgres:16-alpine.

Where to look

server/migrations/.

Good to know

Down files are for development only. Nothing runs them automatically.

Ngôn ngữ chính
Dart
Star
9
Fork
5
Merge trung bình
49 phút
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommandLineCoding/Elephant

Tất cả issue của CommandLineCoding/Elephant

Issue tương tự

Thêm issue về Dart

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.