"metatag_config.cid is part of the primary key but is not specified to be 'not null'."

How I can fix my database for the error above?
Could you provide some sql command to fix it?

Comments

dave reid’s picture

Status: Active » Fixed

Thanks. This is now fixed in 7.x-1.x-dev with http://drupalcode.org/project/metatag.git/commit/4674b5c

dropbydrop’s picture

I did like that
drush dl metatag --select
I chose dev version
then
drush @sites updb
(no updates)
drush @sites cc all

I still have the same error at schema warning.
column cid - difference on: not null
declared: array('description' => 'TODO: please describe this field!', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => FALSE)
actual: array('description' => 'TODO: please describe this field!', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE)
metatag_config.cid is part of the primary key but is not specified to be 'not null'.

Maybe the fix commit is not included in the 17-nov dev version?

dropbydrop’s picture

FIXED.
drupal.org now gave me the correct dev version.
How much time it takes from commit, for drupal.org to give the correct dev version at the same date?

dave reid’s picture

-dev builds are regenerated every 12 hours. You'll only get the most recent changes if you have the code checked out using Git. Otherwise always wait 12 hours to test.

dropbydrop’s picture

Category: support » bug

Status: Fixed » Closed (fixed)

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