nxtgauge-backend-rust/crates/db/migrations
Ashwin Kumar Sivakumar c2fb7d61f7
All checks were successful
build-and-release / build (developers) (push) Successful in 1m41s
build-and-release / build (catering-services) (push) Successful in 1m58s
build-and-release / build (companies) (push) Successful in 2m0s
build-and-release / build (cron) (push) Successful in 2m8s
build-and-release / build (customers) (push) Successful in 2m42s
build-and-release / build (gateway) (push) Successful in 1m2s
build-and-release / build (fitness-trainers) (push) Successful in 1m34s
build-and-release / build (jobs) (push) Successful in 44s
build-and-release / build (employees) (push) Successful in 1m50s
build-and-release / build (graphic-designers) (push) Successful in 2m41s
build-and-release / build (makeup-artists) (push) Successful in 1m49s
build-and-release / build (job-seekers) (push) Successful in 3m2s
build-and-release / build (photographers) (push) Successful in 2m40s
build-and-release / build (payments) (push) Successful in 2m50s
build-and-release / build (social-media-managers) (push) Successful in 2m55s
backend-integration-tests / ai-credits (push) Successful in 52s
build-and-release / build (ugc-content-creators) (push) Successful in 2m37s
build-and-release / build (tutors) (push) Successful in 2m56s
build-and-release / build (video-editors) (push) Successful in 2m41s
build-and-release / build (users) (push) Successful in 4m44s
feat(invoices): generate GST invoices for AI credit purchases
AI credit purchases (money -> credits via PayU) never generated an
invoice, even though the exact same infrastructure already works for
TraceCoin purchases in main.rs's generate_purchase_invoice. Spending
credits (try_reserve_credits/capture) correctly does NOT get an
invoice - only real-money purchases do, matching existing TraceCoin
behavior.

- invoices.payment_id had a hard FK to payments(id) only, which blocks
  using it for ai_credit_orders(id) rows. Postgres has no polymorphic
  FK; dropped the constraint (invoice_type already says which table
  payment_id points into) via a new migration rather than editing the
  original invoices migration.
- Added generate_ai_credit_invoice in ai_credits.rs, called from
  verify_order after a successful PayU payment - mirrors main.rs's
  pattern exactly (same non-blocking failure handling, same seller
  details via the now pub(crate) seller_details(), invoice_type
  'AI_CREDIT_PURCHASE').
- Caught a real bug while writing this: order.amount_inr is the
  POST-discount final price, but NewInvoice.discount_amount is
  subtracted again inside compute_totals (subtotal - discount) - using
  amount_inr directly as unit_price_paise would have double-subtracted
  the discount. Reconstructed the pre-discount price
  (amount_inr + discount_applied) for the line item instead.

Applied the FK-drop migration to nxtgauge_test and prod; verified the
constraint is gone and user_id's FK is untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 03:17:17 +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
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
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
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
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