-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax errors in file /com_admin/sql/updates/mysql/3.4.0-2014-09-16.sql #8788
Conversation
PR fot issue joomla#8786 Original issue description >IMHO file https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/sql/updates/mysql/3.4.0-2014-09-16.sql contains MySQL syntax errors : >is >````SQL >ALTER TABLE `#__redirect_links` ADD header smallint(3) NOT NULL DEFAULT 301; >ALTER TABLE `#__redirect_links` MODIFY new_url varchar(255); >```` >should be >````sql >ALTER TABLE `#__redirect_links` ADD `header` smallint(3) NOT NULL DEFAULT 301; >ALTER TABLE `#__redirect_links` MODIFY `new_url` varchar(255); >```` >related: joomla#6333
Travis returns errors, but from what I see they are not related to this PR. |
Additionaly see #6333 (comment) |
Did you get a MySQL error while updating from a version before 3.4.0? To my knowledge, the SQL commands work fine and apparently nobody had a problem since we released 3.4.0. |
Syntax errors in file /com_admin/sql/updates/mysql/3.4.0-2014-09-16.sql
Merged on review. Whilst not everyone seemed to hit this - the syntax in here is definitely more correct in terms of escaping the column names. And the column thing definitely is required for the schema here https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/schema/changeitem/mysql.php#L66 |
PR for issue #8786
Original issue description