X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdraggableviews%2Fdraggableviews.install;fp=web%2Fmodules%2Fcontrib%2Fdraggableviews%2Fdraggableviews.install;h=364c65a6d8091a908bb5ff0e056ae59736a4783d;hp=0000000000000000000000000000000000000000;hb=1fed477e46533140ff15ce8064f4fbf354419c1c;hpb=58360fba03c880fb30fb0670e485a7a07d028597 diff --git a/web/modules/contrib/draggableviews/draggableviews.install b/web/modules/contrib/draggableviews/draggableviews.install new file mode 100644 index 000000000..364c65a6d --- /dev/null +++ b/web/modules/contrib/draggableviews/draggableviews.install @@ -0,0 +1,72 @@ + 'Table that contains logs of all system events.', + 'fields' => array( + 'dvid' => array( + 'type' => 'serial', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'description' => 'The primary identifier.', + ), + 'view_name' => array( + 'type' => 'varchar', + 'length' => 128, + 'not null' => TRUE, + 'default' => '', + 'description' => 'Makes the order unique for each view.', + ), + 'view_display' => array( + 'type' => 'varchar', + 'length' => 64, + 'not null' => TRUE, + 'default' => '', + 'description' => 'Makes the order unique for each view display.', + ), + 'args' => array( + 'type' => 'varchar', + 'length' => 255, + 'not null' => FALSE, + 'default' => '', + 'description' => 'Makes the order unique for a given set of arguments', + ), + 'entity_id' => array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'description' => 'Id of the entity that we are sorting (node, user, etc.).', + ), + 'weight' => array( + 'type' => 'int', + 'unsigned' => FALSE, + 'not null' => TRUE, + 'default' => 0, + 'description' => 'The order weight.', + ), + 'parent' => array( + 'type' => 'int', + 'unsigned' => FALSE, + 'not null' => TRUE, + 'default' => 0, + 'description' => 'The id of the parent.', + ), + ), + 'indexes' => array( + 'view' => array('view_name', 'view_display', 'args', 'entity_id'), + 'weight' => array('weight'), + 'entity_id' => array('entity_id'), + ), + 'primary key' => array('dvid'), + ); + + return $schema; +}