circus/crates/common/migrations
NotAShelf 65a6fd853d
fc-common: add failed paths cache infrastructure
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I35f9bfb044160151cf73c43ed9ada3476a6a6964
2026-02-16 23:42:41 +03:00
..
001_initial_schema.sql meta: add database migrations; set up migration CLI 2026-02-02 01:15:00 +03:00
002_add_build_system.sql crates: production models and repo layer 2026-02-02 01:15:05 +03:00
003_production_features.sql crates: production models and repo layer 2026-02-02 01:15:05 +03:00
004_build_outputs_and_deps.sql crates: production models and repo layer 2026-02-02 01:15:05 +03:00
005_channels_remote_builders.sql crates: production models and repo layer 2026-02-02 01:15:05 +03:00
006_hardening.sql crates: production models and repo layer 2026-02-02 01:15:05 +03:00
007_branch_and_scheduling.sql crates/common: add migration for multi-branch eval and scheduling shares 2026-02-02 01:49:25 +03:00
008_user_management.sql db: add migration 008 for user management tables 2026-02-05 22:45:08 +03:00
009_builds_job_name_index.sql various: eliminate redundant disk check; improve error handling 2026-02-05 23:05:02 +03:00
010_pull_request_support.sql fc: initial pull request evaluation support 2026-02-07 22:09:20 +03:00
011_jobset_states.sql fc-common: add jobset state enum; add db migration" 2026-02-08 22:23:14 +03:00
012_build_metrics.sql fc-common: add build_metrics table and repository 2026-02-14 18:08:16 +03:00
013_extended_build_status.sql fc-common: add database migration for extended build status codes 2026-02-16 13:02:22 +03:00
014_fix_build_stats_completed.sql treewide: replace BuildStatus::Completed with BuildStatus::Succeeded 2026-02-16 23:42:21 +03:00
015_listen_notify_triggers.sql fc-common: add PostgreSQL LISTEN/NOTIFY infrastructure 2026-02-16 23:42:36 +03:00
016_failed_paths_cache.sql fc-common: add failed paths cache infrastructure 2026-02-16 23:42:41 +03:00
README.md meta: add database migrations; set up migration CLI 2026-02-02 01:15:00 +03:00

Database Migrations

This directory contains SQL migrations for the FC database.

Migration Files

  • 001_initial_schema.sql: Creates the core database schema including projects, jobsets, evaluations, builds, and related tables.

Running Migrations

The easiest way to run migrations is to use the vendored CLI, fc-migrate. Packagers should vendor this crate if possible.

# Run all pending migrations
fc-migrate up postgresql://user:password@localhost/fc_ci

# Validate current schema
fc-migrate validate postgresql://user:password@localhost/fc_ci

# Create a new migration
fc-migrate create migration_name

TODO: add or generate schema overviews