[CHORE]: Add down migrations for 002–012

オープン
#184 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
postgresql, sql
領域
database

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Dart
スター
9
フォーク
5
平均マージ
49分
マージ済み PR(30日)
34

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommandLineCoding/Elephant のほかの issue

CommandLineCoding/Elephant の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。