You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database Exception: 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 '' at line 1
The SQL being executed was: ALTER TABLE craft_routes CHANGE urlParts uriParts
Per the error message, this is the SQL query that was executed:
ALTERTABLE craft_routes CHANGE urlParts uriParts
There should be a column type definition after uriParts though. Looking through the code, the only way the column type definition would have been omitted is if the urlParts column didn’t exist in the first place.
Do you have a database backup from before you attempted the Craft 3 upgrade? If so please restore it, clear out your storage/logs/ folder, and try the upgrade again. If you still get the same error, we can take a look – you can send your backup to [email protected].
Description
I'm upgrading my site to craft 3 (localhost using mamp) by following docs: https://docs.craftcms.com/v3/upgrade.html
On step 9 I am getting the errors:
'One of Craft CMS’s migrations failed.'
Database Exception: 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 '' at line 1
The SQL being executed was: ALTER TABLE craft_routes CHANGE urlParts uriParts
Migration: craft\migrations\m160925_113941_route_uri_parts
Output:
Any help would be greately appreciated
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: