When I try to enable citcon I get:

WD php: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'changed' doesn't exist in table: CREATE TABLE {citcon_supporter} ( [error]
`sid` INT unsigned NOT NULL auto_increment COMMENT 'Primary Key: Unique supporter ID.', 
`nid` INT NOT NULL COMMENT 'The node ID of the campaign this supporter originated from.', 
`created` INT NOT NULL DEFAULT 0 COMMENT 'The Unix timestamp when the supporter was created.', 
`type` VARCHAR(128) NOT NULL DEFAULT '' COMMENT 'The supporter_type.type of this supporter.', 
PRIMARY KEY (`sid`), 
INDEX `nid` (`nid`), 
INDEX `changed` (`changed`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Stores supporter items.'; Array
(
)
 in db_create_table() (line 2688 of /Users/floydm/Desktop/www/cc/includes/database/database.inc).
Cannot modify header information - headers already sent by (output started at /Users/floydm/Desktop/www/drush/includes/output.inc:37) bootstrap.inc:1212 [warning]
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1072 Key column 'changed' doesn't exist in table: CREATE TABLE {citcon_supporter} (
`sid` INT unsigned NOT NULL auto_increment COMMENT 'Primary Key: Unique supporter ID.', 
`nid` INT NOT NULL COMMENT 'The node ID of the campaign this supporter originated from.', 
`created` INT NOT NULL DEFAULT 0 COMMENT 'The Unix timestamp when the supporter was created.', 
`type` VARCHAR(128) NOT NULL DEFAULT '' COMMENT 'The supporter_type.type of this supporter.', 
PRIMARY KEY (`sid`), 
INDEX `nid` (`nid`), 
INDEX `changed` (`changed`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COMMENT 'Stores supporter items.'; Array
(
)

Patch that removes the index on changed coming in a moment.

Comments

floydm’s picture

StatusFileSize
new307 bytes

Patch attached.

floydm’s picture

With this patch and #1902250: date_popup dependency fails when enabling module with drush patch I can enable citcon via drush now.

langworthy’s picture

Status: Active » Needs work

I believe we need this index for performance reasons. How can we keep the index but still make drush happy?

langworthy’s picture

Status: Needs work » Fixed

We got the column name wrong. Fixed with commit e27fda44

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Pulling out my last name.