Skip to content

subjectsテーブルにカラムを追加#18

Merged
masaya-osuga merged 1 commit intomainfrom
feature/add-column-to-subject
Mar 21, 2026
Merged

subjectsテーブルにカラムを追加#18
masaya-osuga merged 1 commit intomainfrom
feature/add-column-to-subject

Conversation

@masaya-osuga
Copy link
Copy Markdown
Member

@masaya-osuga masaya-osuga commented Mar 21, 2026

GET SubjectsV1_listによるフィルタリングの際に必要だったフィールドをカラムに追加しました。

@masaya-osuga masaya-osuga self-assigned this Mar 21, 2026
@masaya-osuga masaya-osuga changed the title Add Column subjectsテーブルにカラムを追加 Mar 21, 2026
@masaya-osuga masaya-osuga marked this pull request as ready for review March 21, 2026 04:49
@masaya-osuga masaya-osuga requested review from a team, Copilot, hikaru-0602 and kantacky March 21, 2026 04:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

GET SubjectsV1_list のフィルタリングで必要となる classification / cultural_subject_categorysubjects テーブル側に持たせ、DB保存・取得と検索条件に反映するPRです。

Changes:

  • subjects の検索条件に classification / cultural_subject_category を追加
  • subjects のUpsert時に上記カラムを更新対象に追加
  • domain/databaseモデルに2カラムを追加し、相互変換に反映

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
internal/repository/subject.go ListのWHERE句に2フィルタを追加、Upsertの更新対象カラムに2項目を追加
internal/domain/subject.go Subjectドメインモデルに Classification / CulturalSubjectCategory を追加
internal/database/subject.go GORMモデルに2カラムを追加し、DB↔domain変換に反映

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@kantacky kantacky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masaya-osuga masaya-osuga enabled auto-merge (squash) March 21, 2026 04:54
Copy link
Copy Markdown
Contributor

@hikaru-0602 hikaru-0602 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@masaya-osuga masaya-osuga merged commit 3c0ad5e into main Mar 21, 2026
6 checks passed
@masaya-osuga masaya-osuga deleted the feature/add-column-to-subject branch March 21, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants