DatabaseSchemaObjectDoesNotExistException: Cannot add field flag_content.weight: table doesn't exist. in DatabaseSchema_mysql->addField() (line 325 of [...]project/includes/database/mysql/schema.inc).

CommentFileSizeAuthor
#2 flag_weight-quickfix.patch8.01 KBAzuma
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gsowrey’s picture

Title: Error: flag_weights_intall() > DatabaseSchema_mysql->addField() » Error: flag_weights_install() > DatabaseSchema_mysql->addField()

Minor fix to title, in case someone's search for "flag_weights_install".

Azuma’s picture

FileSize
8.01 KB

I worked with one of my sites and found out, that after update of flag module to version 3.5 - flag_weight module become broken. So I needed a quick solution. And I wrote a patch. Maybe it will help to some one too.

calbasi’s picture

Hi Azuma,
Your patch does not seem to apply to Flag Weights 7.x-1.0 (in fact, there is code from 6.x and some from 7.x). For example:
From 6.x draggableviews_handler_flag_weights.inc

-    if ($view->field[$field_name]->table != 'flag_content') {
+    if ($view->field[$field_name]->table != 'flagging') {
       drupal_set_message(t("This handler cannot be applied to this field - use Weight!"));
     }
calbasi’s picture

Status: Active » Closed (duplicate)

It seems fixed here for Flag 7.x-3.x (tested OK with Flag 7.x-3.6)
https://www.drupal.org/node/1877304