Skip to content

Switch database to Postgres - #9

Merged
ttnsy merged 5 commits into
mainfrom
postgres_migration
Aug 28, 2026
Merged

ttnsy merged 5 commits into
mainfrom
postgres_migration

Conversation

@ttnsy

@ttnsy ttnsy commented Jun 19, 2026

Copy link
Copy Markdown
Owner
  • Replace production db to Postgres
  • Use sqlite only to run tests

@ttnsy
ttnsy requested a review from Gotfrid June 19, 2026 07:57

@Gotfrid Gotfrid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please apply changes we discussed on the call

Comment thread .github/workflows/main.yml Outdated
Comment thread app/config.py Outdated
Comment thread app/database.py Outdated
Comment thread compose.yaml Outdated
Comment thread Taskfile.yml Outdated
@ttnsy
ttnsy force-pushed the postgres_migration branch from 5ffec27 to 948faf4 Compare July 24, 2026 07:56
@ttnsy
ttnsy force-pushed the postgres_migration branch from 948faf4 to 8951a74 Compare August 7, 2026 07:55

@Gotfrid Gotfrid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

left some nitpick comments, approving to unblock

Comment thread .github/workflows/main.yml Outdated
Comment thread .github/workflows/main.yml
Comment thread app/config.py Outdated

class Settings(BaseSettings):
db_path: str = DEFAULT_DB_PLACEHOLDER
engine: Literal["sqlite", "postgres"] = Field(default="sqlite")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion: consider explicit alias, but not necessary

Comment thread tests/conftest.py Outdated
Comment thread compose.yaml Outdated
Comment thread compose.yaml
… unnecessary engine disposal in test fixture
@ttnsy
ttnsy merged commit e565060 into main Aug 28, 2026
2 checks passed
@ttnsy
ttnsy deleted the postgres_migration branch August 28, 2026 08:41
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.

2 participants