gohorsejobs/backend/migrations
Tiago Yamamoto e5e43974a5 fix(migrations): increase users.status VARCHAR(20→30), fix 010 status value
- 009: status column was VARCHAR(20), causing 'force_change_password' (21 chars)
  to fail on INSERT — changed to VARCHAR(30)
- 010: changed initial status from 'force_change_password' to 'pending' (fits
  any column size ≥7 chars, avoids future truncation)
- 046: ALTER TABLE for existing deployments where 009 already applied with VARCHAR(20)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 21:17:34 -06:00
..
000_init_uuid_v7.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
001_create_users_table.sql refactor(roles): rename companyAdmin->admin and jobSeeker->candidate 2025-12-24 13:30:50 -03:00
002_create_companies_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
003_create_user_companies_table.sql refactor(roles): rename companyAdmin->admin and jobSeeker->candidate 2025-12-24 13:30:50 -03:00
004_create_prefectures_cities_tables.sql Ajuste nas migrations 2026-02-07 10:41:16 -03:00
005_create_jobs_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
006_create_applications_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
007_create_favorite_jobs_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
008_create_password_resets_table.sql refactor(roles): rename companyAdmin->admin and jobSeeker->candidate 2025-12-24 13:30:50 -03:00
009_unify_schema.sql fix(migrations): increase users.status VARCHAR(20→30), fix 010 status value 2026-02-23 21:17:34 -06:00
010_seed_super_admin.sql fix(migrations): increase users.status VARCHAR(20→30), fix 010 status value 2026-02-23 21:17:34 -06:00
011_add_is_featured_to_jobs.sql feat: implement dynamic featured jobs 2025-12-14 15:43:43 -03:00
012_add_work_mode.sql feat(db): 🏠 added work_mode because office is overrated anyway 2025-12-15 08:53:41 -03:00
013_create_backoffice_tables.sql Add admin backoffice routes and dashboard 2025-12-22 16:37:05 -03:00
014_update_job_status_constraint.sql Add admin backoffice routes and dashboard 2025-12-22 16:37:05 -03:00
015_add_candidate_profile_fields.sql Add dynamic candidate management data 2025-12-22 19:18:15 -03:00
016_create_notifications_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
017_create_tickets_table.sql refactor(roles): rename companyAdmin->admin and jobSeeker->candidate 2025-12-24 13:30:50 -03:00
018_add_currency_to_jobs.sql feat: enhance job form with currency, salary periods, contract types, and add ER diagram docs 2025-12-23 22:49:33 -03:00
019_create_job_payments_table.sql refactor: migrate core tables to UUID v7 and update roadmap 2025-12-24 12:30:49 -03:00
020_create_fcm_tokens_table.sql Implement FCM Token Management (DB, Backend, Frontend, Backoffice) 2025-12-26 10:41:50 -03:00
021_location_hierarchy.sql feat(location): add comprehensive geographic hierarchy (continents, countries, states, cities) 2025-12-24 15:04:21 -03:00
022_fix_superadmin_role.sql fix(migrations): add migration to fix superadmin role and users e2e test 2025-12-24 18:06:49 -03:00
023_ensure_seeded_admins_roles.sql fix(rbac): add migration to fix seeded users roles and patch notifications store 2025-12-24 18:14:35 -03:00
024_create_external_services_credentials.sql Implement secure Stripe credential management using RSA encryption 2025-12-26 11:03:52 -03:00
025_create_chat_tables.sql feat: Email System, Avatar Upload, Email Templates UI, and Public Job Posting 2025-12-26 12:21:34 -03:00
026_create_system_settings.sql feat: Email System, Avatar Upload, Email Templates UI, and Public Job Posting 2025-12-26 12:21:34 -03:00
027_create_email_system.sql feat: Email System, Avatar Upload, Email Templates UI, and Public Job Posting 2025-12-26 12:21:34 -03:00
028_add_avatar_url_to_users.sql feat: Email System, Avatar Upload, Email Templates UI, and Public Job Posting 2025-12-26 12:21:34 -03:00
029_expand_employment_types.sql feat: add location selector and contract types 2025-12-26 15:18:16 -03:00
030_add_salary_negotiable.sql feat: add salary options with toggle and candidate proposal 2025-12-26 15:23:22 -03:00
031_add_company_profile_fields.sql feat: add company profile fields 2025-12-26 15:48:13 -03:00
032_update_superadmin_lol.sql fix: make migration 032 idempotent and fix UUID type in credentials bootstrap 2026-02-07 17:22:15 +00:00
033_add_refactor_columns.sql feat: (TASK: Mudança na forma de operar os usuarios) 2026-01-17 17:07:35 -03:00
034_create_video_interviews.sql feat: implement careerjet gap analysis improvements 2026-02-14 19:37:25 +00:00
035_create_job_alerts.sql feat: implement careerjet gap analysis improvements 2026-02-14 19:37:25 +00:00
036_create_company_followers.sql feat: implement careerjet gap analysis improvements 2026-02-14 19:37:25 +00:00
036_ensure_jobs_work_mode.sql backend: suportar workMode em vagas e reforçar schema 2026-02-15 13:36:32 -03:00
037_add_date_posted_to_jobs.sql feat(backend): add missing storage routes and job datePosted support 2026-02-14 21:16:12 -03:00
037_add_profile_fields_to_users.sql feat: implement full auth system with HTTPOnly cookies + JWT, fix migrations to UUID v7, remove mock data from frontend 2026-02-16 05:20:46 -06:00
038_create_password_reset_tokens.sql feat: implement full auth system with HTTPOnly cookies + JWT, fix migrations to UUID v7, remove mock data from frontend 2026-02-16 05:20:46 -06:00
039_create_tickets_table_v2.sql feat: implement full auth system with HTTPOnly cookies + JWT, fix migrations to UUID v7, remove mock data from frontend 2026-02-16 05:20:46 -06:00
040_create_activity_logs_table.sql feat: implement full auth system with HTTPOnly cookies + JWT, fix migrations to UUID v7, remove mock data from frontend 2026-02-16 05:20:46 -06:00
041_create_notifications_table_v2.sql feat: implement full auth system with HTTPOnly cookies + JWT, fix migrations to UUID v7, remove mock data from frontend 2026-02-16 05:20:46 -06:00
042_add_view_count_and_job_views.sql chore: commit pending changes 2026-02-15 16:03:40 +00:00
043_add_company_subscription.sql chore: commit pending changes 2026-02-15 16:03:40 +00:00
044_add_category_to_tickets.sql feat: add category field to tickets system 2026-02-23 15:43:35 -06:00
045_add_answers_to_applications.sql feat: fix seeder password hashing, add custom questions, navbar/footer on register, payment handler 2026-02-23 20:26:49 -06:00
046_fix_user_status_varchar.sql fix(migrations): increase users.status VARCHAR(20→30), fix 010 status value 2026-02-23 21:17:34 -06:00
999_fix_gohorse_schema.sql first commit 2025-12-09 19:04:48 -03:00