Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrglasgow created an issue. See original summary.

jrglasgow’s picture

Status: Active » Needs review
FileSize
667 bytes

this patch makes the nid column a primary key

laxman.ghavte’s picture

Status: Needs review » Reviewed & tested by the community

Hi jrglasgow,

Reviewed patch working fine.

  • marcelovani committed f588363 on 7.x-1.x authored by jrglasgow
    Issue #2701489 by jrglasgow, laxman.ghavte: ga_stats_count table has no...
marcelovani’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

brtamas’s picture

I have got an error when I enable the module:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1171 All parts of a PRIMARY KEY must be NOT NULL;

I have created a patch to fix it.

brtamas’s picture

brtamas’s picture

Mike.Conley’s picture

Refactoring brtamas' patch above -- the other columns in the primary key can't be NULL either.

Mike.Conley’s picture

Refactoring to apply cleanly.

Mike.Conley’s picture

Ugh. 3rd time is the charm.

Mike.Conley’s picture

Found a bug with a db_select query, needed to put the addField method on its own line.