diff --git a/prisma/migrations/20260205200000_add_user_country/migration.sql b/prisma/migrations/20260205200000_add_user_country/migration.sql new file mode 100644 index 0000000..a8e29b1 --- /dev/null +++ b/prisma/migrations/20260205200000_add_user_country/migration.sql @@ -0,0 +1,12 @@ +-- Add country column to User table +-- This is used for mentor matching and geographic filtering + +DO $$ +BEGIN + IF NOT EXISTS ( + SELECT 1 FROM information_schema.columns + WHERE table_name = 'User' AND column_name = 'country' + ) THEN + ALTER TABLE "User" ADD COLUMN "country" TEXT; + END IF; +END $$;