Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting this error when installing:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB/TEXT column 'hook_mappings' can't have a default value: CREATE TABLE {services_client_connection_hook} (
`hid` INT unsigned NOT NULL auto_increment COMMENT 'Primary ID field for the table. Not used for anything except internal lookups.',
`conn_name` VARCHAR(255) NOT NULL COMMENT 'The name of the connection.',
`name` VARCHAR(255) NOT NULL COMMENT 'The name of the hook.',
`title` VARCHAR(255) NOT NULL COMMENT 'The title of the hook.',
`hook` VARCHAR(255) NOT NULL COMMENT 'The name of the hook.',
`hook_mappings` LONGTEXT NOT NULL DEFAULT '' COMMENT 'Mapping of different fields of objects',
`hook_conditions` LONGTEXT NOT NULL DEFAULT '' COMMENT 'Hook conditions',
PRIMARY KEY (`hid`),
UNIQUE KEY `name` (`name`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Connection hooks'; Array
(
)
in db_create_table() (line 2686 of /opt/lampp/htdocs/mysite/includes/database/database.inc).
Comments
Comment #1
soyarma CreditAttribution: soyarma commentedHmm... look at that, its incorrect--shouldn't have not null and default '' on the longtext. I'll fix that up.
Comment #2
soyarma CreditAttribution: soyarma commentedFix committed to 7.x-1.x branch. Dev snapshot should update in a few hours.