Files
ai_playgroud/migrate.php
T
Claude 143fe3d488 Set up modern PHP MVC project structure for GetYourBand platform
- Implemented clean MVC architecture with Router, Controller, and Model base classes
- Created database migrations for users, bands, bookings, reviews, and availability
- Set up Tailwind CSS with yellow color scheme and modern design
- Added Alpine.js for reactive JavaScript components
- Configured Vite for asset building and hot module replacement
- Created authentication and role-based middleware
- Implemented helper functions and configuration system
- Added comprehensive README with setup instructions
- Configured Apache with proper rewrite rules and security headers
- Set up Composer and npm package management with modern dependencies
2025-12-02 21:31:08 +00:00

21 lines
483 B
PHP

#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
use Database\Database;
use Dotenv\Dotenv;
// Load environment variables
$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();
try {
echo "Starting database migrations...\n\n";
Database::runMigrations(__DIR__ . '/database/migrations');
echo "\n✓ All migrations completed successfully!\n";
} catch (Exception $e) {
echo "\n✗ Migration failed: " . $e->getMessage() . "\n";
exit(1);
}