1.5 KiB
1.5 KiB
Old Seed Scripts (Archived)
These are the original individual seed scripts that have been consolidated into the new unified database setup system.
Consolidated Into:
- setup-database.ts - Unified setup script with all functionality
- reset-db.ts - Improved reset script with safety features
Original Scripts:
seed-data.ts- Sample bookings and activity logsseed-announcements.ts- Test announcementsseed-time-slots.ts- Time slot configurationinit-admin-data.ts- Admin dashboard initializationreset-database.ts- Original reset script
Migration Notes:
All functionality from these scripts has been intelligently integrated into the new system:
New Command Equivalents:
| Old Script | New Command |
|---|---|
tsx scripts/seed-data.ts |
npm run db:setup |
tsx scripts/seed-announcements.ts |
Integrated into setup |
tsx scripts/seed-time-slots.ts |
Integrated into setup |
tsx scripts/init-admin-data.ts |
Integrated into setup |
tsx scripts/reset-database.ts |
npm run db:reset-confirm |
Advantages of New System:
- Intelligent Setup - Automatically handles dependencies and order
- Flexible Options - Essential-only or full sample data modes
- Safety Features - Reset confirmation and detailed logging
- Better Documentation - Comprehensive help and summaries
- Single Source - All database setup in one place
These old scripts are kept for reference but should not be used in new development.