Skip to content

Adding versioning to the database#403

Open
Edwardvaneechoud wants to merge 5 commits intomainfrom
feature/add-alembic-for-db-version-control
Open

Adding versioning to the database#403
Edwardvaneechoud wants to merge 5 commits intomainfrom
feature/add-alembic-for-db-version-control

Conversation

@Edwardvaneechoud
Copy link
Copy Markdown
Owner

This pull request introduces Alembic-based database migrations to the flowfile_core package, establishing a robust and maintainable schema management process. It adds the initial schema definition with all core tables, configures Alembic environment and templates, and ensures migration files are bundled for runtime access (e.g., with PyInstaller). The build process is updated so that Alembic migration files are included in the packaged application.

Database migration infrastructure:

  • Adds a complete Alembic migration environment, including alembic.ini configuration, env.py environment script, and a migration script template (script.py.mako) for generating future migration files. [1] [2] [3]
  • Introduces the initial Alembic migration (001_initial_schema.py) that creates all the core tables needed for the catalog, user management, secrets, connections, scheduling, and artifacts, along with all necessary constraints and relationships.

Build and packaging updates:

  • Implements a function (get_alembic_datas) in main.py to collect Alembic migration files and configuration for inclusion in the build output, ensuring migrations are available at runtime (e.g., when using PyInstaller). The build process now includes these files in the datas parameter of the PyInstaller Analysis. [1] [2]

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2026

Deploy Preview for flowfile-wasm canceled.

Name Link
🔨 Latest commit cd0ae50
🔍 Latest deploy log https://app.netlify.com/projects/flowfile-wasm/deploys/69d576a6dfeb860008145029

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.

1 participant