Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS idx_items_status ON crm_items(status)' at line 1 in /home/psjnlks/CRM1/index.php:108 Stack trace: #0 /home/psjnlks/CRM1/index.php(108): PDO->exec('CREATE INDEX IF...') #1 /home/psjnlks/CRM1/index.php(150): migrate() #2 {main} thrown in /home/psjnlks/CRM1/index.php on line 108