669 B
669 B
Database Migration Instructions
Add auth_provider column to users table
Run this command in your backend directory:
# Windows (PowerShell)
$env:PGPASSWORD="recipes_password"; psql -h localhost -U recipes_user -d recipes_db -f add_auth_provider_column.sql
# Or using psql directly
psql -h localhost -U recipes_user -d recipes_db -f add_auth_provider_column.sql
This will:
- Add the
auth_providercolumn to the users table (default: 'local') - Update all existing users to have 'local' as their auth_provider
- Create an index for faster lookups
- Display the updated table structure
After running the migration, restart your backend server.