Skip to content

Instantly share code, notes, and snippets.

@gijs
Created March 3, 2010 13:57
Show Gist options
  • Save gijs/320617 to your computer and use it in GitHub Desktop.
Save gijs/320617 to your computer and use it in GitHub Desktop.
<?php
// $Id$
/**
* Implement hook_schema().
*/
function relation_schema() {
$schema['relation_allowed'] = array(
'description' => 'Table for storing permitted relations between content types',
'fields' => array(
'id' => array(
'type' => 'int',
'description' => 'Autoincrement ID',
'unsigned' = TRUE,
'serial' = TRUE,
),
'node_type_left' => array(
'type' => 'int',
'description' => 'The lefthand content type',
'unsigned' => TRUE,
'not null' => TRUE,
),
'node_type_right' => array(
'type' => 'int',
'description' => 'The righthand content type',
'unsigned' => TRUE,
'not null' => TRUE,
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment