In project with plain php and mysql I have table app_users and need add column with type array and default value empty array, I try:
ALTER TABLE app_users ADD setting_notification tinytext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)' DEFAULT 'a:0:{}'
have error:
[SQL]ALTER TABLE app_users ADD setting_notification tinytext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)' DEFAULT 'a:0:{}'
[Err] 1101 - BLOB/TEXT column 'setting_notification' can't have a default value
How to correct add default value to tinytest column (like array for php) ?