-
Open Supabase Dashboard
- Go to: https://supabase.com
- Login and select your project
-
Open SQL Editor
- Click "SQL Editor" in the left sidebar
- Click "New Query" button
-
Copy & Paste
- Open the file:
supabase_migration_transactions.sql - Copy ALL the content (Ctrl+A, Ctrl+C)
- Paste in Supabase SQL Editor (Ctrl+V)
- Open the file:
-
Run
- Click "Run" button (or press Ctrl+Enter)
- Wait for success message
-
Done!
- Refresh your app
- Transaction history will now appear on Payment page
# Using Scoop (recommended for Windows)
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install supabase
# OR using npm
npm install -g supabase# Link your project (one time only)
supabase link --project-ref your-project-ref
# Run migration
supabase db pushAfter running the SQL:
- Go to Supabase Dashboard > Database > Tables
- You should see a new table called
transactions - Open your app and go to Payment page
- You should see "Transaction History" section at the bottom
If you see "table does not exist" error:
- The migration hasn't been run yet
- Go back to Option 1 and run the SQL in dashboard
If transaction history is empty:
- That's normal! Transactions will appear when:
- Admin marks a payment as "Paid"
- New payments are processed
If you see permission errors:
- Make sure you're logged in as admin
- Check RLS policies in Supabase Dashboard
✅ Shows complete payment history ✅ Displays: Date, Amount, Payment Method, Status ✅ Users see only their own transactions ✅ Admins see all transactions ✅ Automatic transaction creation when payment is marked paid ✅ Mobile responsive design
Need help? The SQL file is ready at: supabase_migration_transactions.sql
Just copy-paste it in Supabase SQL Editor and click Run!