Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
44
vendor/chi-teck/drupal-code-generator/templates/d7/install.twig
vendored
Normal file
44
vendor/chi-teck/drupal-code-generator/templates/d7/install.twig
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the {{ name }} module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_schema().
|
||||
*/
|
||||
function {{ machine_name }}_schema() {
|
||||
$schema['{{ machine_name }}_table'] = array(
|
||||
'description' => '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;
|
||||
}
|
Reference in a new issue