Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseOrigin ¶
type DatabaseOrigin string
DatabaseOrigin indicates where the database was originally created.
const ( // OriginNew indicates a fresh database with no prior migrations. OriginNew DatabaseOrigin = "new" // OriginWoodpecker indicates the database was created by Woodpecker CI. OriginWoodpecker DatabaseOrigin = "woodpecker" // OriginCrow indicates the database was created by Crow CI. OriginCrow DatabaseOrigin = "crow" // OriginUnknown indicates the database has migrations but we can't // determine the origin (possibly from a modified fork). OriginUnknown DatabaseOrigin = "unknown" )
type MigrationInfo ¶
type MigrationInfo struct {
// Origin indicates where the database came from.
Origin DatabaseOrigin
// AppliedMigrations lists all migration IDs found in the database.
AppliedMigrations []string
// UnknownMigrations lists migration IDs that are not recognized.
// These may be from a newer version or a different fork.
UnknownMigrations []string
// IsFirstCrowMigration is true when this is the first time Crow
// is running against a Woodpecker database.
IsFirstCrowMigration bool
}
MigrationInfo contains analysis results from database migration inspection.
Source Files
¶
- 000_legacy_to_xormigrate.go
- 001_add_org_id.go
- 002_task_data_type.go
- 003_config_data_type.go
- 004_remove_secrets_plugin_only_col.go
- 005_convert_to_new_pipeline_errors_format.go
- 006_link_to_url.go
- 007_clean_registry_pipeline.go
- 008_set_default_forge_id.go
- 009_unify_columns_tables.go
- 010_registries_add_user.go
- 011_cron_without_sec.go
- 012_rename_start_end_time.go
- 013_fix_v31_registries.go
- 014_remove_old_migrations_of_v1.go
- 015_add_org_agents.go
- 016_add_custom_labels_to_agent.go
- 017_split_trusted.go
- 018_fix_orgs_users_match.go
- 019_gated_to_require_approval.go
- 020_remove_repo_netrc_only_trusted.go
- 021_rename_token_fields.go
- 022_set_new_defaults_for_require_approval.go
- 023_remove_repo_scm.go
- 024_unsanitize_org_and_user_names.go
- 025_add_logs_deleted_to_pipelines.go
- 025_fix_zero_forge_id_ref.go
- 026_add_logsKeepMin_and_logsKeepDuration.go
- 027_add_depends_on_to_steps.go
- 028_add_workflow_fields.go
- 029_add_distributed_locks.go
- 029_add_maintenance_tables.go
- 030_add_pubsub_messages.go
- 031_add_cache_entries.go
- 032_add_kubernetes_maintenance_actions.go
- 033_add_dry_run_to_maintenance_config.go
- 034_add_priority_to_agents.go
- 035_add_stale_agent_cleanup.go
- 036_add_resource_limits_to_agents.go
- 037_add_workflow_polling_health_to_agents.go
- 038_add_autoscalers.go
- 039_add_user_description_timezone.go
- 040_add_secret_source.go
- 041_add_timestamps.go
- 042_add_access_tokens.go
- 043_add_agent_persistent_id.go
- 044_crow_add_deploy_team_to_repos.go
- 045_crow_add_integrations.go
- 046_crow_add_agent_hostname.go
- 047_crow_add_user_forges.go
- 048_crow_add_forge_icon.go
- 049_crow_add_forge_to_repo_unique.go
- 050_crow_add_allow_manual_to_repos.go
- common.go
- constants.go
- detector.go
- logger.go
- migration.go
Click to show internal directories.
Click to hide internal directories.