Actions
Bug #67442
closedSetting NOT NULL on „BLOB“ column in Install Tool
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2015-06-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
To see this bug most patches under review for DBAL must be in the working tree, otherwise this will be swallowed by other bugs!
When the InstallTool suggests a change like this:
ALTER TABLE sys_category CHANGE l10n_diffsource l10n_diffsource longblob NOT NULL; Current value: longblob
this alteration will not be performed, it seems as if the NOT NULL is being silently swallowed, the statements logged by the DB server for this alteration are:
LOG: statement: ALTER TABLE "sys_category" ALTER COLUMN "l10n_diffsource" TYPE BYTEA LOG: statement: ALTER TABLE "sys_category" ALTER COLUMN "l10n_diffsource" SET DEFAULT ''
Manually setting the field to NOT NULL using a statement like this:
ALTER TABLE sys_category ALTER COLUMN l10n_diffsource SET NOT NULL; <pre> works and will be recognized by the install tool. Test Environment: TYPO3 7.3-dev@master + DBAL patches PostgreSQL 9.4.1
Actions