Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

DB Migration via Alembic #365

Open
Open
Labels
enhancementNew feature or request
@LeonWehrhahn

Description

@LeonWehrhahn

Is your feature request related to a problem?

Currently Athena lacks a robust mechanism for handling database schema changes. As Athena evolves, changes to the database schema are inevitable. Without a proper migration tool, this will lead to schema inconsistencies, deployment issues, and synchronization problems across different environments.

Describe the solution you'd like

Integrate Alembic into Athena to manage database migrations effectively. Alembic is a lightweight database migration tool for SQLAlchemy-supported databases. It can help us version control our database schema changes and apply migrations smoothly across different instances of Athena services.

Two possible approaches:

  • Option A: Integrate Alembic directly into the athena package. The challenge here is ensuring that when multiple services (modules) start, we prevent race conditions where multiple instances attempt to run migrations simultaneously.
  • Option B: Create a separate service dedicated to running migrations before the other modules start. This could be a good production solution but complicates local testing and development since locally we create a SQLite db separately in every module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp