Closed (fixed)
Project:
Matrix field
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2009 at 08:45 UTC
Updated:
20 Jul 2009 at 09:20 UTC
for only query that used in module it should be:
$schema['node_field_matrix_data']['primary key'] = array('vid', 'field_name');
but i recommend add one more for nid:
$schema['node_field_matrix_data']['indexes'] = array('nid' => array('nid'));
Comments
Comment #1
aaron1234nz commentedThanks for the suggestion. I've added the indexes in the latest 2.x dev version.
Comment #2
greenmother commentedoh, sorry, primary index should be
$schema['node_field_matrix_data']['primary key'] = array('vid', 'field_name', 'row', 'col');Comment #3
greenmother commentedComment #4
aaron1234nz commentedI've only implemented simple indexes on nid and vid as database data integrity checking is not needed here.