forked from andika/membership-be
Update New Features
This commit is contained in:
54
migrations/verify_columns.sql
Normal file
54
migrations/verify_columns.sql
Normal file
@@ -0,0 +1,54 @@
|
||||
-- Verification script to check which columns exist
|
||||
-- Run this to see what's missing
|
||||
|
||||
-- Check users table columns
|
||||
SELECT
|
||||
'users' as table_name,
|
||||
column_name,
|
||||
data_type,
|
||||
is_nullable
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'users'
|
||||
AND column_name IN (
|
||||
'profile_photo_url',
|
||||
'social_media_facebook',
|
||||
'social_media_instagram',
|
||||
'social_media_twitter',
|
||||
'social_media_linkedin'
|
||||
)
|
||||
ORDER BY column_name;
|
||||
|
||||
-- Check events table columns
|
||||
SELECT
|
||||
'events' as table_name,
|
||||
column_name,
|
||||
data_type,
|
||||
is_nullable
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'events'
|
||||
AND column_name IN (
|
||||
'microsoft_calendar_id',
|
||||
'microsoft_calendar_sync_enabled'
|
||||
)
|
||||
ORDER BY column_name;
|
||||
|
||||
-- Check which tables exist
|
||||
SELECT
|
||||
table_name,
|
||||
'EXISTS' as status
|
||||
FROM information_schema.tables
|
||||
WHERE table_name IN (
|
||||
'event_galleries',
|
||||
'newsletter_archives',
|
||||
'financial_reports',
|
||||
'bylaws_documents',
|
||||
'storage_usage'
|
||||
)
|
||||
ORDER BY table_name;
|
||||
|
||||
-- Check storage_usage contents
|
||||
SELECT
|
||||
COUNT(*) as record_count,
|
||||
SUM(total_bytes_used) as total_bytes,
|
||||
MAX(max_bytes_allowed) as max_bytes
|
||||
FROM storage_usage;
|
||||
Reference in New Issue
Block a user