Schema module warning
panels_node.did is part of the primary key but is not specified to be 'not null'.

Primary key cant be null and why it is not serial?

panels_node.install

  $schema['panels_node'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'css_id' => array(
        'type' => 'varchar',
        'length' => '255',
      ),
      'did' => array(
        'type' => 'int',
+        'not null' => TRUE,
      ),
    ),
    'primary key' => array('did'),
  );

Comments

andypost’s picture

Component: Code » Panel nodes

Additional Shema mismatch

  • panels_node

    • column did:
      declared: array('type' => 'int', 'not null' => TRUE)
      actual: array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'disp-width' => '11')
    • column css_id: key 'not null' not set, ignoring inspected default value
merlinofchaos’s picture

disp-width? Is that even documented?

andypost’s picture

Suppose it depends on unsigned or not for int (10 or 11 digits of display-width)

This and #342494: Schema fix - panels pages just a review reported by Schema module

hass’s picture

display-width is as I know generated by the MySQL Query Browser if you have resized the column while administering your DB. Nothing problematic and schema module should ignore this... I've also opened a case for this some days ago. See #345235: Ignore disp-width in schema comparison.

merlinofchaos’s picture

Status: Needs work » Closed (won't fix)

Panels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.