mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 05:37:43 +01:00
- Move 100+ files from root to proper directories - Migration scripts → scripts/db/ - SQL files → supabase/sql/archive/ - Test/debug scripts → scripts/test/ - Documentation → docs/archive/ (organized by category) - Shell scripts → scripts/ (organized by category) - Fix test organization - Remove nested tests/unit/tests/unit/ structure - Consolidate test files to proper locations - Update documentation references - Update migration script paths in workflow docs - Update scripts/README.md with moved file notes - Delete placeholder files - Remove empty placeholder.ipynb - Result: Root directory now contains only essential config files - Result: Professional, organized codebase structure - Result: All files in proper locations per project standards See docs/CLEANUP_COMPLETE.md for full details.
71 lines
955 B
JavaScript
71 lines
955 B
JavaScript
const { createClient } = require('@supabase/supabase-js')
|
|
|
|
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL
|
|
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
|
|
|
|
if (!supabaseUrl || !supabaseKey) {
|
|
console.error('Missing Supabase environment variables')
|
|
process.exit(1)
|
|
}
|
|
|
|
const supabase = createClient(supabaseUrl, supabaseKey)
|
|
|
|
async function testAssetsTable() {
|
|
try {
|
|
console.log('Testing assets table existence...')
|
|
|
|
// Try to select from assets table
|
|
const { data, error } = await supabase
|
|
.from('assets')
|
|
.select('*')
|
|
.limit(1)
|
|
|
|
if (error) {
|
|
console.error('Assets table error:', error.message)
|
|
return false
|
|
}
|
|
|
|
console.log('Assets table exists and is accessible')
|
|
console.log('Sample data:', data)
|
|
return true
|
|
} catch (err) {
|
|
console.error('Error testing assets table:', err.message)
|
|
return false
|
|
}
|
|
}
|
|
|
|
testAssetsTable()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|