X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Finstall.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Finstall.twig;h=cadbcf329b3fa974603d12f096023d48883c29cc;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig new file mode 100644 index 000000000..cadbcf329 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/install.twig @@ -0,0 +1,44 @@ + 'Table description', + 'fields' => array( + 'id' => array( + 'type' => 'serial', + 'not null' => TRUE, + 'description' => 'Primary Key: Unique ID.', + ), + 'title' => array( + 'type' => 'varchar', + 'length' => 64, + 'not null' => TRUE, + 'default' => '', + 'description' => 'Column description', + ), + 'weight' => array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'Column description', + ), + ), + 'primary key' => array('id'), + 'unique keys' => array( + 'title' => array('title'), + ), + 'indexes' => array( + 'weight' => array('weight'), + ), + ); + + return $schema; +}