Go to file T
Code
0001_meta.sql Add migrations + migrationsfs embed package (0001_meta + tg_set_updated_at)
0002_citext.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0003_users.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0004_user_emails.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0005_password_resets.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0006_email_verifications.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0007_auth_throttle.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0008_username_redirects.sql Add migrations 0002-0008: citext + users, user_emails, password_resets, email_verifications, auth_throttle, username_redirects
0009_user_totp.sql Add migrations 0009-0011: user_totp (encrypted-at-rest), user_recovery_codes, auth_audit_log
0010_user_recovery_codes.sql Add migrations 0009-0011: user_totp (encrypted-at-rest), user_recovery_codes, auth_audit_log
0011_auth_audit_log.sql Add migrations 0009-0011: user_totp (encrypted-at-rest), user_recovery_codes, auth_audit_log
0012_user_ssh_keys.sql Add migration 0012: user_ssh_keys with global fingerprint UNIQUE + key_type whitelist
0013_user_tokens.sql Add migration 0013 user_tokens with global token_hash UNIQUE + scopes text[]
0014_users_profile_columns.sql Add migration 0014: profile columns (bio, location, website, company, pronouns, avatar_object_key)
0015_user_notification_prefs.sql Add migrations 0015-0016: user_notification_prefs (k/v jsonb) + users.theme + users.session_epoch
0016_users_settings_columns.sql Add migrations 0015-0016: user_notification_prefs (k/v jsonb) + users.theme + users.session_epoch
0017_repos.sql S11: migration 0017_repos.sql + reposdb sqlc package
0018_jobs_and_push_events.sql S14: jobs, push_events, webhook_events_pending tables + repos.default_branch_oid
0019_repo_collaborators.sql S15: repo_collaborators table + policydb sqlc bucket
0020_repo_lifecycle.sql S16: repo_redirects + repo_transfer_requests tables, lifecycle queries
0021_branch_protection_rules.sql S20: branch_protection_rules table + queries
0022_issues.sql S21: issues migration 0022 + queries + sqlc regen
0023_pull_requests.sql S22: pull_requests migration 0023 + queries + sqlc regen
0024_pr_reviews.sql S23: pr_reviews migration 0024 + queries + sqlc regen
0025_check_runs.sql S24: check_runs migration 0025 + queries + sqlc regen
0026_stars.sql S26: migrations for stars, watches, domain_events
0027_watches.sql S26: migrations for stars, watches, domain_events
0028_domain_events.sql S26: migrations for stars, watches, domain_events
0029_forks.sql S27: migration 0029 — fork_count + init_status + maintenance triggers
0030_search_extensions.sql S28: migrations 0030-0032 — extensions + search index tables + triggers
0031_search_indexes.sql S28: migrations 0030-0032 — extensions + search index tables + triggers
0032_code_search.sql S28: migrations 0030-0032 — extensions + search index tables + triggers
0033_notifications.sql S29: notifications schema, sqlc, fan-out worker core
0034_orgs.sql S30: orgs schema + members + invitations + principals + sqlc
0035_teams.sql S31: teams + policy max-of-sources (org owner | direct collab | team grant + parent)
0036_repo_topics.sql S32: add repo_topics migration
0037_webhooks.sql S33: add webhooks + webhook_deliveries migration
0038_site_admin.sql S34: migration 0038 — users.is_site_admin + transactional_email_log
0039_rate_limits.sql S35: migration 0039 — rate_limits + signup_ip_throttle
0040_profile_pins.sql Add profile pin persistence
0041_search_repo_owner_terms.sql Fix org-owned repositories in search
0042_workflow_runs.sql migration 0042: workflow_runs (S41a)
0043_workflow_jobs.sql migration 0043: workflow_jobs (S41a)
0044_workflow_steps.sql migration 0044: workflow_steps (S41a)
0045_workflow_secrets.sql migration 0045: workflow_secrets (S41a)
0046_workflow_runners.sql migration 0046: workflow_runners + runner_tokens (S41a)
0047_workflow_step_log_chunks.sql migration 0047: workflow_step_log_chunks (S41a)
0048_workflow_artifacts.sql migration 0048: workflow_artifacts (S41a)
0049_actions_variables.sql migration 0049: actions_variables (S41a)
0050_workflow_steps_step_with.sql migration 0050: workflow_steps.step_with column (S41a-M2)
0051_workflow_runs_trigger_event_id.sql migration 0051: workflow_runs.trigger_event_id + partial unique index (S41b)
0052_repo_source_remotes.sql Fix source remote migration markers
0053_runner_jwt_used.sql Fix duplicate migration versions
0054_push_events_web_protocol.sql Fix duplicate migration versions
0055_social_feed_trending.sql Add social follow graph
0056_user_private_contributions.sql Merge remote-tracking branch 'origin/trunk' into contrib-settings-parity
0057_workflow_job_secret_masks.sql actions/runner: renumber secret mask migration
0058_repo_name_reuse_after_soft_delete.sql Allow recreating soft-deleted repos
0059_org_github_imports.sql Add org GitHub import workers
0060_actions_retention_indexes.sql actions: add workflow retention cleanup worker
0061_billing_domain.sql Add billing domain schema
0062_user_ssh_keys_kind.sql users/ssh-keys: add kind column (authentication|signing) + kind-filtered queries
0063_device_authorizations.sql migration: device_authorizations table for RFC 8628 device-code flow
0064_workflow_disabled.sql migration: workflow_disabled table + sqlc queries
0065_workflow_caches.sql migration: workflow_caches table + sqlc queries
0066_actions_policy_approvals.sql actions: add policy and approval schema (S41j-3)
0067_runner_pool_ops.sql actions/runners: add pool ops schema and queries (S41j-4)
0068_user_gpg_keys.sql Merge trunk into s51/gpg-foundation; renumber GPG migrations to 0068-0070
0069_user_gpg_subkeys.sql Merge trunk into s51/gpg-foundation; renumber GPG migrations to 0068-0070
0070_commit_verification_cache.sql Merge trunk into s51/gpg-foundation; renumber GPG migrations to 0068-0070
0071_user_plan_enum.sql migrations: user_plan enum + users.plan column
0072_user_billing_states.sql migrations: user_billing_states table (mirrors org shape minus seat columns)
0073_user_billing_state_seed.sql migrations: seed user_billing_states + AFTER INSERT trigger on users
0074_billing_invoices_polymorphic.sql migrations: billing_invoices polymorphic over (subject_kind, subject_id)
0075_billing_webhook_events_polymorphic.sql migrations: add subject audit columns to billing_webhook_events
0076_profile_pins_pro_cap.sql migrations/0076: raise profile_pins position cap to 100 for Pro
0077_billing_state_last_event_at.sql migrations/0077: add last_event_at to org+user billing states
0078_billing_invoices_refunded.sql migrations/0078: invoice status 'refunded' enum + billing_invoices.refunded_at