After activating the module I got the following error:

PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: type modifier is not allowed for type "text" LINE 5: path text(2048), ^: CREATE TABLE {rules_link} ( id serial, name varchar(32) NOT NULL, label varchar(255) NOT NULL default '', path text(2048), entity_type varchar(32) NOT NULL default '', settings bytea, status smallint NOT NULL default 1, module varchar(255) NULL, PRIMARY KEY (id), CONSTRAINT rules_link_name_key UNIQUE (name) ); Array ( ) in db_create_table() (regel 2684 van /Users/eric/Sites/drupal-cb/includes/database/database.inc).

Related info:
Drupal: 7.10
Relation: 7.x-1.0-beta3
Rules: 7.x-2.0

Could this be MySQL-only syntax?

CommentFileSizeAuthor
#1 patch_rules_link_20120207.patch321 bytesdiricia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

diricia’s picture

In the install file the path field on the rules_link table should not have a length. Attached is a patch file.

sepgil’s picture

Status: Active » Fixed

Fixed. thx for the patch!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.