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
C3 > C4 ALTER Table - Fehler #2046
Comments
No, I revised my post in the forum ;). It already is int(10) NULL. However the problem is that in strict mode, you cannot set such a field with an empty string. Only NULL or an integer would be valid. |
Scheint als wurden die runonce.php-Jobs bei dir nicht ausgeführt? Hast du Isotope vor oder nach dem Contao Update aktualisiert? |
Ich habe C4 + aller Erweiterungen als Grundinstallation lokal installiert und dann die DB der Live-Seite (C3.5.x) drüber. Wie fixe ich das? |
hmm, dann wird die runonce.php natürlich nicht mehr ausgeführt 😞 Composer wird die Erweiterung nicht neu installieren, wenn sie sich nicht ändert. Am einfachsten duplizierst du die upgrade.php und nennst sie runonce.php. Nach dem nächsten Aufruf des Install-Tools sollte die Datei wieder gelöscht sein. |
Das hat funktioniert! Vielen lieben Dank Andreas! |
Bei einem Update einer C3>4.4.40 bekomme ich über das Installtool folgende Fehlermeldung, das drei Tabellen nicht angepasst werden können.
Lokale Installation mit Isotope Version 2.5.13, MAMP Pro, C4.4.40
Hier hat auch jemand das gleiche Problem.
https://community.contao.org/de/showthread.php?75089-Fehlermeldung-im-install-tool&p=505150
Spooky meinte das die SQO Definition sollte auf int(10) NULL geändert werden.
ALTER TABLE tl_iso_product_collection CHANGE date_shipped date_shipped INT DEFAULT NULL
ALTER TABLE tl_iso_product_collection CHANGE date_paid date_paid INT DEFAULT NULL
ALTER TABLE tl_iso_product_collection CHANGE locked locked INT DEFAULT NULL
[2019-06-03 17:25:03] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_sc ope":"backend","_token_check":true,"_controller":" Contao\InstallationBundle\Controller\Installati onController::installAction","_route":"contao_inst all"},"request_uri":"http://projekt-xyz/contao/install","method":"POST"} []
[2019-06-03 17:25:04] app.CRITICAL: An exception occurred. {"exception":"[object] (Doctrine\DBAL\Exception\DriverException(code: 0): An exception occurred while executing 'ALTER TABLE tl_iso_product_collection CHANGE date_shipped date_shipped INT DEFAULT NULL':\n\nSQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'date_shipped' at row 2 at /Users/codesache/Documents/htdocs/projekt-xyz-c4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:126, Doctrine\DBAL\Driver\PDOException(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'date_shipped' at row 2 at /Users/codesache/Documents/htdocs/projekt-xyz-c4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:109, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'date_shipped' at row 2 at /Users/codesache/Documents/htdocs/projekt-xyz-c4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:107)"} []
The text was updated successfully, but these errors were encountered: