Install component with table updates.
Sample file https://github.com/Globulopolis/Jcomments-4/blob/master/component/administrator/install/sql/updates/mysql/4.0.16.sql
No Problems
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' AND
null = 'NO'' at line 1
...the wrong type or attributes
Joomla 4.1
MariaDB 10.4.22
PHP 7.4.13
The Update structure
button will not help here.
Labels |
Added:
No Code Attached Yet
|
Title |
|
P.S.: For the long term I'm working on a fix, but in the mean time please ask them to change their update SQL as suggested above,
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-09 09:07:45 |
Closed_By | ⇒ | Globulopolis |
Thanks for help @richard67
Suggested solution at #36363 (comment) fixed the problem.
@Globulopolis You should also check the comments after the one you have linked, e.g. #36363 (comment) .
I.e. in your case it should be like I suggested above, without the "COLUMN" key word:
ALTER TABLE `#__jcomments_subscriptions` CHANGE `hash` `hash` CHAR(32) NOT NULL DEFAULT '';
ALTER TABLE `#__jcomments_subscriptions` CHANGE `source` `source` VARCHAR(100) NOT NULL DEFAULT '';
@richard67 yes, I split the code and test it. All fine. No errors now.
@Globulopolis hat's a known limitation of the database checker which results in a false alarm. See #36363 . The solution can be found here: #36363 (comment) , i.e. ask them to change their SQL to:
Let me know if this works for you and if they accept that change. If so, I suggest to close this issue.