- Create organized migration folder structure: - database/ - Core schema changes and migrations - tests/ - Test scripts and verification queries - directus/ - Directus CMS configuration scripts - fixes/ - Database fixes and patches - archive/ - Historical and deprecated scripts - Move 60+ SQL files from root to appropriate folders - Add comprehensive README with usage guidelines - Consolidate old migrations_archive into new archive folder - Maintain clear separation of concerns for different script types Benefits: - Cleaner project root directory - Easier to find specific types of SQL scripts - Better organization for maintenance and development - Clear documentation for migration procedures - Proper separation of production vs development scripts
16 lines
352 B
SQL
16 lines
352 B
SQL
-- Test the AI moderation system by inserting a sample flag
|
|
INSERT INTO moderation_flags (
|
|
post_id,
|
|
flag_reason,
|
|
scores,
|
|
status
|
|
) VALUES (
|
|
gen_random_uuid(),
|
|
'hate',
|
|
'{"hate": 0.8, "greed": 0.1, "delusion": 0.2}',
|
|
'pending'
|
|
);
|
|
|
|
-- Verify the insertion
|
|
SELECT * FROM moderation_flags ORDER BY created_at DESC LIMIT 1;
|