Closed (fixed)
Project:
Citizens Connected
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2013 at 18:14 UTC
Updated:
12 Feb 2013 at 20:20 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | citcon-missing_field_changed-1902260-1.patch | 307 bytes | floydm |
Comments
Comment #1
floydm commentedPatch attached.
Comment #2
floydm commentedWith this patch and #1902250: date_popup dependency fails when enabling module with drush patch I can enable citcon via drush now.
Comment #3
langworthy commentedI believe we need this index for performance reasons. How can we keep the index but still make drush happy?
Comment #4
langworthy commentedWe got the column name wrong. Fixed with commit e27fda44
Comment #5.0
(not verified) commentedPulling out my last name.