Skip to content

Adjust postgres table names#2214

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Nov 19, 2025
Merged

Adjust postgres table names#2214
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings November 18, 2025 09:53
@github-actions github-actions bot added the src label Nov 18, 2025
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

This PR updates PostgreSQL table names by removing the tb_ prefix, aligning raw SQL queries with GORM's default table naming convention (pluralized snake_case).

Key Changes:

  • Updated all raw SQL queries to use non-prefixed table names (spec_infos, image_infos, latency_infos)
  • Ensured consistency across index creation, deduplication queries, and subqueries
  • Removed trailing whitespace from error messages in recommendation.go

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/main.go Updated index creation statements for spec_infos and latency_infos tables
src/core/resource/spec.go Updated deduplication query to use spec_infos table name
src/core/resource/image.go Updated existence check and deduplication queries to use image_infos table name
src/core/infra/recommendation.go Updated latency subquery to use latency_infos and spec_infos table names, removed trailing whitespace

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

@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Nov 19, 2025
@cb-github-robot cb-github-robot merged commit a2d77eb into cloud-barista:main Nov 19, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon. src

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants