nxtgauge-backend-rust/crates/db/migrations
Ashwin Kumar Sivakumar cc2dab112b
All checks were successful
build-and-release / build (cron) (push) Successful in 58s
build-and-release / build (companies) (push) Successful in 1m59s
build-and-release / build (customers) (push) Successful in 2m9s
build-and-release / build (employees) (push) Successful in 2m17s
build-and-release / build (developers) (push) Successful in 2m29s
build-and-release / build (catering-services) (push) Successful in 2m45s
build-and-release / build (gateway) (push) Successful in 49s
build-and-release / build (jobs) (push) Successful in 42s
build-and-release / build (fitness-trainers) (push) Successful in 2m38s
build-and-release / build (graphic-designers) (push) Successful in 1m57s
build-and-release / build (payments) (push) Successful in 1m54s
build-and-release / build (job-seekers) (push) Successful in 2m57s
build-and-release / build (makeup-artists) (push) Successful in 2m47s
build-and-release / build (photographers) (push) Successful in 2m48s
build-and-release / build (social-media-managers) (push) Successful in 2m59s
backend-integration-tests / ai-credits (push) Successful in 50s
build-and-release / build (tutors) (push) Successful in 2m45s
build-and-release / build (ugc-content-creators) (push) Successful in 2m50s
build-and-release / build (video-editors) (push) Successful in 2m40s
build-and-release / build (users) (push) Successful in 4m47s
fix(db): 4 fresh-bootstrap migration chain bugs found + verified today
Reconciling the local dev DB (63 migrations behind) surfaced 4 genuine
bugs in the migration chain itself -- not just this DB's legacy
scripts/init-db.sql seeding -- confirmed by replaying the full chain
against a brand new, completely empty database from scratch:

- 20260318235959: customer_profiles.status is UPDATEd by
  20260319090000's backfill 4 months before it's ever ADDed
  (20260721020000). Adds it early (IF NOT EXISTS).
- 20260401235959: 20260317190000 creates the old users-linked
  `employees` shape; 20260402030000's CREATE TABLE IF NOT EXISTS no-ops
  against it and fails creating an index on a column that was never
  added. Conditionally drops the old shape first (only if it's still
  pre-transition -- gated on the missing `email` column), restoring
  20260402030000's own documented original intent.
- 20260419235959: the schema `20260420000003_external_role_modules`
  needs (persona_types, modules, role_module_access, ...) was only ever
  defined in a disabled .up.sql.skip (its version slot was taken by
  ...seed.sql); the seed data that depends on it was never skipped.
  Creates that schema early -- verbatim content, purely additive.
- 20260421235959: same disabled-migration pattern for the
  role_permissions -> role_admin_permissions / dashboard_configs ->
  role_sidebar_configs / runtime_configs -> role_runtime_configs /
  user_roles -> user_role_assignments renames that 20260422000000's
  widget seed needs. Conditionally renames each pair (only if old name
  exists and new name doesn't), verified against live Rust code that
  already queries the new names exclusively.

payments/invoices were NOT chain bugs -- confirmed clean on the fresh
bootstrap test -- so no fix needed for those; they only conflicted on
this one DB because of its scripts/init-db.sql legacy seed, which is
already a documented, known gap.

Verified twice: applied cleanly as no-ops against the now-fully-migrated
local dev DB, and applied successfully end-to-end (0 manual steps)
against a brand new empty database created from scratch.

Runbook updated with the full pending-migration list and today's
findings.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 18:30:42 +05:30
..
20260317000000_init_config_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000000_init_config_schema.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317000001_init_users_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000001_init_users_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000002_init_photographer_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000002_init_photographer_schema.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317000003_init_tutor_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000003_init_tutor_schema.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317000004_init_company_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000004_init_company_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317000005_create_payments_and_pricing.down.sql fix: payments/pricing_packages tables never existed either 2026-07-21 02:28:57 +05:30
20260317000005_create_payments_and_pricing.up.sql fix: payments/pricing_packages tables never existed either 2026-07-21 02:28:57 +05:30
20260317184130_init_job_seeker_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184130_init_job_seeker_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184230_init_customer_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184230_init_customer_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184330_init_makeup_artist_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184330_init_makeup_artist_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184430_init_developer_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184430_init_developer_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184530_init_video_editor_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184530_init_video_editor_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184630_init_graphic_designer_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184630_init_graphic_designer_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184730_init_social_media_manager_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184730_init_social_media_manager_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184830_init_fitness_trainer_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184830_init_fitness_trainer_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184930_init_catering_service_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317184930_init_catering_service_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190000_complete_users_schema.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190000_complete_users_schema.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190100_jobs_and_applications.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190100_jobs_and_applications.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190200_requirements_and_leads.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317190200_requirements_and_leads.up.sql.skip feat: pricing packages with multi-select roles, lead requests, mock checkout 2026-04-13 01:36:13 +02:00
20260317190300_portfolio_payments.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317190300_portfolio_payments.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260317190400_notifications.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317190400_notifications.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317195000_profession_specific_profiles.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317195000_profession_specific_profiles.up.sql fix: portfolio_items/services tables never existed; wallet ledger read used stale column names 2026-07-21 02:21:52 +05:30
20260317201500_user_verification_tokens.down.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317201500_user_verification_tokens.up.sql feat: complete rust microservices migration with real db logic 2026-03-17 20:42:51 +01:00
20260317202000_reviews.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202000_reviews.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260317202100_knowledge_base.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202100_knowledge_base.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202200_support_tickets.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202200_support_tickets.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202300_coupons_discounts.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202300_coupons_discounts.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202400_onboarding_states.down.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202400_onboarding_states.up.sql feat: commit remaining service files, migrations, and model updates 2026-03-18 22:59:47 +01:00
20260317202500_profession_profiles_custom_data.down.sql feat: add Redis for OTP, auth tokens, rate limiting, lead dedup and marketplace cache 2026-03-18 22:58:42 +01:00
20260317202500_profession_profiles_custom_data.up.sql feat: add Redis for OTP, auth tokens, rate limiting, lead dedup and marketplace cache 2026-03-18 22:58:42 +01:00
20260318233000_tracecoin_ledger_immutable.down.sql fix: three more already-deployed migrations unconditionally ALTERed tables that were never created 2026-07-21 02:18:23 +05:30
20260318233000_tracecoin_ledger_immutable.up.sql fix: three more already-deployed migrations unconditionally ALTERed tables that were never created 2026-07-21 02:18:23 +05:30
20260318235959_customer_profiles_status_early.down.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260318235959_customer_profiles_status_early.up.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260319090000_backfill_active_profiles_to_approved.down.sql feat(backend): enforce profile approvals and complete migration approval flows 2026-03-19 00:30:23 +01:00
20260319090000_backfill_active_profiles_to_approved.up.sql feat(backend): enforce profile approvals and complete migration approval flows 2026-03-19 00:30:23 +01:00
20260325100000_internal_roles_extended.down.sql chore: checkpoint current workspace changes 2026-03-25 22:15:07 +01:00
20260325100000_internal_roles_extended.up.sql chore: checkpoint current workspace changes 2026-03-25 22:15:07 +01:00
20260326110000_departments_management_fields.down.sql chore: sync local changes 2026-03-26 20:58:43 +01:00
20260326110000_departments_management_fields.up.sql chore: sync local changes 2026-03-26 20:58:43 +01:00
20260327100000_designations_management_fields.down.sql feat: add designation management CRUD backend 2026-03-27 19:20:55 +01:00
20260327100000_designations_management_fields.up.sql feat: add designation management CRUD backend 2026-03-27 19:20:55 +01:00
20260401235959_drop_old_employees_table_early.down.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260401235959_drop_old_employees_table_early.up.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260402030000_strict_employee_separation.down.sql feat(admin): wire management modules to live backend and add UGC role 2026-04-02 13:09:43 +02:00
20260402030000_strict_employee_separation.up.sql fix(db): stop wiping employees table on every migration run, restore phone column 2026-07-19 05:40:48 +05:30
20260402092000_init_activity_logs.up.sql feat(admin): wire management modules to live backend and add UGC role 2026-04-02 13:09:43 +02:00
20260402100000_kb_articles_summary_tags.down.sql feat: add KB and support ticket system 2026-04-02 13:36:12 +02:00
20260402100000_kb_articles_summary_tags.up.sql feat: add KB and support ticket system 2026-04-02 13:36:12 +02:00
20260402110000_support_tickets_fields.down.sql feat: add KB and support ticket system 2026-04-02 13:36:12 +02:00
20260402110000_support_tickets_fields.up.sql feat: add KB and support ticket system 2026-04-02 13:36:12 +02:00
20260402120000_reviews_admin_fields.down.sql Add reviews, coupons, discounts, pricing packages, and reports handlers 2026-04-02 18:09:50 +02:00
20260402120000_reviews_admin_fields.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260402130000_coupons_title_roles.down.sql Add reviews, coupons, discounts, pricing packages, and reports handlers 2026-04-02 18:09:50 +02:00
20260402130000_coupons_title_roles.up.sql Add reviews, coupons, discounts, pricing packages, and reports handlers 2026-04-02 18:09:50 +02:00
20260402140000_discounts_table.down.sql Add reviews, coupons, discounts, pricing packages, and reports handlers 2026-04-02 18:09:50 +02:00
20260402140000_discounts_table.up.sql Add reviews, coupons, discounts, pricing packages, and reports handlers 2026-04-02 18:09:50 +02:00
20260405100000_init_ugc_content_creator_schema.down.sql Add UGC Content Creator microservice (10th professional role) 2026-04-05 21:14:02 +02:00
20260405100000_init_ugc_content_creator_schema.up.sql Add UGC Content Creator microservice (10th professional role) 2026-04-05 21:14:02 +02:00
20260405235734_create_verifications_table.down.sql feat: implement user verification system and database migrations 2026-04-06 03:39:41 +02:00
20260405235734_create_verifications_table.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260408120000_user_settings_and_account_deletion.down.sql feat: extend admin/user flows with settings, verification, and approval updates 2026-04-08 22:40:54 +02:00
20260408120000_user_settings_and_account_deletion.up.sql feat: extend admin/user flows with settings, verification, and approval updates 2026-04-08 22:40:54 +02:00
20260415000000_complete_migration.down.sql feat(db): add complete migration and update extension models to use user_role_profile_id 2026-04-12 23:55:08 +02:00
20260415000000_complete_migration.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260415000001_create_user_sessions.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000001_create_user_sessions.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000002_add_users_missing_columns.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000002_add_users_missing_columns.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000003_update_departments.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000003_update_departments.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000004_update_designations.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000004_update_designations.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000005_update_employees.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415000005_update_employees.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010001_create_user_role_profiles.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010001_create_user_role_profiles.up.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010002_backfill_user_role_profiles.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010002_backfill_user_role_profiles.up.sql.skip feat: pricing packages with multi-select roles, lead requests, mock checkout 2026-04-13 01:36:13 +02:00
20260415010003_add_user_role_profile_id.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010003_add_user_role_profile_id.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260415010004_remove_external_links.down.sql feat: Add database redesign documentation and Phase 1-2 migrations 2026-04-12 23:21:11 +02:00
20260415010004_remove_external_links.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260419235959_external_role_module_tables_early.down.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260419235959_external_role_module_tables_early.up.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260420000001_external_role_management_phase1.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260420000002_cleanup_role_tables.down.sql chore: checkpoint workspace updates 2026-04-26 23:58:43 +02:00
20260420000002_cleanup_role_tables.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260420000003_external_role_modules.down.sql chore: checkpoint workspace updates 2026-04-26 23:58:43 +02:00
20260420000003_external_role_modules.seed.sql chore: checkpoint workspace updates 2026-04-26 23:58:43 +02:00
20260420000003_external_role_modules.seed2.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260420000003_external_role_modules.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260421235959_role_config_table_renames_early.down.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260421235959_role_config_table_renames_early.up.sql fix(db): 4 fresh-bootstrap migration chain bugs found + verified today 2026-08-14 18:30:42 +05:30
20260422000000_seed_widgets.seed.sql fix: seed verification_status into JOB_SEEKER dashboard widgets 2026-07-23 04:26:05 +05:30
20260422000000_seed_widgets.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260425000000_ai_usage.down.sql Add AI endpoints and gateway route fix 2026-05-01 02:54:42 +02:00
20260425000000_ai_usage.up.sql fix: three more already-deployed migrations unconditionally ALTERed tables that were never created 2026-07-21 02:18:23 +05:30
20260608000000_ai_conversations.down.sql feat(ai): Phase 2 - functional endpoints with personas and pillars 2026-06-08 05:50:17 +05:30
20260608000000_ai_conversations.up.sql feat(ai): Phase 2 - functional endpoints with personas and pillars 2026-06-08 05:50:17 +05:30
20260608010000_ai_feedback.down.sql feat(ai): Phase 3 - RAG, streaming, rate limiting, feedback 2026-06-08 06:15:58 +05:30
20260608010000_ai_feedback.up.sql feat(ai): Phase 3 - RAG, streaming, rate limiting, feedback 2026-06-08 06:15:58 +05:30
20260608020000_ai_phase4_columns.down.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260608020000_ai_phase4_columns.up.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260608030000_ai_ab_tests.down.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260608030000_ai_ab_tests.up.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260608040000_ai_analytics.down.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260608040000_ai_analytics.up.sql feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
20260610003321_create_leads.down.sql fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews 2026-06-10 16:17:10 +02:00
20260610003321_create_leads.up.sql fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews 2026-06-10 16:17:10 +02:00
20260610003322_create_lead_requests.down.sql fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews 2026-06-10 16:17:10 +02:00
20260610003322_create_lead_requests.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260610150000_fix_ugc_niche_tags.down.sql fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews 2026-06-10 16:17:10 +02:00
20260610150000_fix_ugc_niche_tags.up.sql fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews 2026-06-10 16:17:10 +02:00
20260614233620_ai_plans_and_limits.down.sql feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
20260614233620_ai_plans_and_limits.up.sql fix(db): make ai_plans_and_limits migration idempotent 2026-07-19 03:14:02 +05:30
20260615060600_ai_credit_packages.down.sql feat(ai): complete AI plans/credits implementation and build tooling 2026-06-15 06:15:49 +05:30
20260615060600_ai_credit_packages.up.sql fix(db): make three more migrations idempotent; log swallowed login DB error 2026-07-19 04:40:31 +05:30
20260626000000_payu_rename_columns.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260626000000_payu_rename_columns.up.sql fix(db): make three more migrations idempotent; log swallowed login DB error 2026-07-19 04:40:31 +05:30
20260627000000_tracecoin_security_hardening.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260627000000_tracecoin_security_hardening.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260627010000_lead_request_reserve_linkage.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260627010000_lead_request_reserve_linkage.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260627020000_invoice_hardening.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260627020000_invoice_hardening.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260627030000_wallet_full.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260627030000_wallet_full.up.sql fix(db): re-enable wallet_full migration (tracecoin_holds/buckets) 2026-08-12 23:18:51 +05:30
20260702000000_job_seeker_resume_url.down.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260702000000_job_seeker_resume_url.up.sql feat: profile photo upload, PDF resume generation, AI auto-apply, schema fixes 2026-07-02 13:31:06 +02:00
20260703210000_ai_credits_wallet.down.sql feat(db,ci): fix missing ai_credits tables, wire integration tests to CI 2026-08-13 17:31:22 +05:30
20260703210000_ai_credits_wallet.up.sql feat(db,ci): fix missing ai_credits tables, wire integration tests to CI 2026-08-13 17:31:22 +05:30
20260703220000_ai_credits_seed_features.down.sql feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
20260703220000_ai_credits_seed_features.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260705110000_ai_credit_packages.down.sql feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
20260706100000_ai_usage_logs_preview.up.sql feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
20260706200000_ai_refunds.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260706300000_ai_coupons_promotions.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260706400000_ai_subscription_lifecycle.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260706500000_ai_token_cost_engine.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260706600000_ai_observability.up.sql.skip fix: skip broken migrations that reference dropped professionals table 2026-07-17 00:48:50 +02:00
20260716500000_users_litellm_key.down.sql Issue each account its own LiteLLM virtual key instead of the shared master key 2026-07-16 20:29:00 +05:30
20260716500000_users_litellm_key.up.sql fix(db): make three more migrations idempotent; log swallowed login DB error 2026-07-19 04:40:31 +05:30
20260718200000_create_verifications_and_approvals.down.sql fix: verifications/approval_requests tables never existed — the single biggest gap 2026-07-21 02:26:15 +05:30
20260718200000_create_verifications_and_approvals.up.sql fix: verifications/approval_requests tables never existed — the single biggest gap 2026-07-21 02:26:15 +05:30
20260718210823_fix_verification_logs_fk.down.sql fix(db): point verification_logs FK at verifications, not legacy verification_requests 2026-07-19 03:01:25 +05:30
20260718210823_fix_verification_logs_fk.up.sql fix(db): point verification_logs FK at verifications, not legacy verification_requests 2026-07-19 03:01:25 +05:30
20260719000926_employees_phone_column.down.sql fix(db): stop wiping employees table on every migration run, restore phone column 2026-07-19 05:40:48 +05:30
20260719000926_employees_phone_column.up.sql fix(db): stop wiping employees table on every migration run, restore phone column 2026-07-19 05:40:48 +05:30
20260719120000_reference_numbers.down.sql fix: lead_requests table never existed, and reference_numbers migration was unconditionally broken 2026-07-21 02:00:23 +05:30
20260719120000_reference_numbers.up.sql fix: lead_requests table never existed, and reference_numbers migration was unconditionally broken 2026-07-21 02:00:23 +05:30
20260721000000_fix_job_seeker_profile_and_applications.down.sql fix: lead_requests table never existed, and reference_numbers migration was unconditionally broken 2026-07-21 02:00:23 +05:30
20260721000000_fix_job_seeker_profile_and_applications.up.sql fix: lead_requests table never existed, and reference_numbers migration was unconditionally broken 2026-07-21 02:00:23 +05:30
20260721010000_profession_profiles_user_role_profile_id.down.sql fix: professionals (photographer, tutor, developer, etc.) couldn't submit profiles/documents 2026-07-21 01:19:49 +05:30
20260721010000_profession_profiles_user_role_profile_id.up.sql fix: professionals (photographer, tutor, developer, etc.) couldn't submit profiles/documents 2026-07-21 01:19:49 +05:30
20260721020000_customer_profiles_status.down.sql fix: customer document submission and profile verification 2026-07-21 01:39:25 +05:30
20260721020000_customer_profiles_status.up.sql fix: customer document submission and profile verification 2026-07-21 01:39:25 +05:30
20260721030000_create_lead_requests.down.sql fix: three more already-deployed migrations unconditionally ALTERed tables that were never created 2026-07-21 02:18:23 +05:30
20260721030000_create_lead_requests.up.sql fix: three more already-deployed migrations unconditionally ALTERed tables that were never created 2026-07-21 02:18:23 +05:30
20260721040000_create_invoices.down.sql feat: generate a GST invoice automatically after a successful Tracecoin/PayU purchase 2026-07-21 03:02:47 +05:30
20260721040000_create_invoices.up.sql feat: generate a GST invoice automatically after a successful Tracecoin/PayU purchase 2026-07-21 03:02:47 +05:30
20260721050000_create_audit_logs.down.sql fix: audit_logs, tax_rules, reviews tables never existed; fix wrong column in review creation 2026-07-21 03:05:14 +05:30
20260721050000_create_audit_logs.up.sql fix: audit_logs, tax_rules, reviews tables never existed; fix wrong column in review creation 2026-07-21 03:05:14 +05:30
20260721060000_create_tax_rules_and_reviews.down.sql fix: audit_logs, tax_rules, reviews tables never existed; fix wrong column in review creation 2026-07-21 03:05:14 +05:30
20260721060000_create_tax_rules_and_reviews.up.sql fix: audit_logs, tax_rules, reviews tables never existed; fix wrong column in review creation 2026-07-21 03:05:14 +05:30
20260721070000_seed_pricing_packages.down.sql seed: add a starter Tracecoin package per role; fix paise unit bug in invoice line item 2026-07-21 03:47:54 +05:30
20260721070000_seed_pricing_packages.up.sql seed: add a starter Tracecoin package per role; fix paise unit bug in invoice line item 2026-07-21 03:47:54 +05:30
20260813000000_fix_ai_credits_timestamp_types.down.sql fix(db): convert ai_credits timestamp columns to TIMESTAMPTZ 2026-08-13 21:44:30 +05:30
20260813000000_fix_ai_credits_timestamp_types.up.sql fix(db): convert ai_credits timestamp columns to TIMESTAMPTZ 2026-08-13 21:44:30 +05:30
20260814000000_fix_ai_credit_packages_pricing_and_orders.down.sql fix(db): correct ai_credit_packages pricing (paise not rupees), add missing ai_credit_orders table 2026-08-14 01:38:59 +05:30
20260814000000_fix_ai_credit_packages_pricing_and_orders.up.sql fix(db): add missing ai_credit_orders columns + ai_coupons tables 2026-08-13 23:10:40 +02:00
20260814010000_ai_credit_packages_role_scoping.down.sql feat(ai-credits): role-scoped purchasable credit packages 2026-08-14 01:46:03 +05:30
20260814010000_ai_credit_packages_role_scoping.up.sql feat(ai-credits): role-scoped purchasable credit packages 2026-08-14 01:46:03 +05:30
20260814020000_ai_coupons.down.sql fix(db): add missing ai_credit_orders columns + ai_coupons tables 2026-08-13 23:10:40 +02:00
20260814020000_ai_coupons.up.sql fix(db): add missing ai_credit_orders columns + ai_coupons tables 2026-08-13 23:10:40 +02:00
20260814030000_invoices_payment_id_polymorphic.down.sql feat(invoices): generate GST invoices for AI credit purchases 2026-08-14 03:17:17 +05:30
20260814030000_invoices_payment_id_polymorphic.up.sql feat(invoices): generate GST invoices for AI credit purchases 2026-08-14 03:17:17 +05:30
20260814040000_waitlist_signups.down.sql feat(waitlist): POST /api/waitlist for the nxtgauge.com coming-soon form 2026-08-14 03:46:28 +05:30
20260814040000_waitlist_signups.up.sql feat(waitlist): POST /api/waitlist for the nxtgauge.com coming-soon form 2026-08-14 03:46:28 +05:30
20260814050000_invoices_payment_id_polymorphic_check.down.sql feat(ai-credits): real coupon validation endpoint; restore invoice FK integrity 2026-08-14 15:26:47 +05:30
20260814050000_invoices_payment_id_polymorphic_check.up.sql feat(ai-credits): real coupon validation endpoint; restore invoice FK integrity 2026-08-14 15:26:47 +05:30