Upgrade fail #15
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-thirtybees/tbupdater#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While running the tdupdater, it raise the following error:
SQL 1.0.8 1064 in INSERT INTO
ps_configuration(name,value,date_add,date_upd) SELECT 'TB_MAIL_SUBJECT_TEMPLATE', '[{shop_name}] {subject}', NOW(), NOW() WHERE ( SELECT COUNT() FROMps_configurationWHEREname= 'TB_MAIL_SUBJECT_TEMPLATE' ) = 0: 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 'WHERE ( SELECT COUNT() FROMps_configurationWHEREname= 'TB_M' at line 3The SQL should be written:
INSERT INTO
ps_configuration(name,value,date_add,date_upd)SELECT 'TB_MAIL_SUBJECT_TEMPLATE', '[{shop_name}] {subject}', NOW(), NOW()
FROM (select 1) t
WHERE ( SELECT COUNT(*) FROM
ps_configurationWHEREname= 'TB_MAIL_SUBJECT_TEMPLATE' ) = 0Thanks for the report. This module got replaced by module Core Updater, which does this task not with some fancy SQL, but by using class Configuration. This issue report was in mind when designing retrocompatibility in Core Updater, so it wasn't useless.
@Traumflug if it was replaced by something else - make it obvious in this repository's README. There are many articles online referring to tbupdater, and not core updater. People try to use tbupdater in vain. Me for instance :)