Skip to content
Snippets Groups Projects
Commit 047c60be authored by amit_singhal's avatar amit_singhal
Browse files

coding standards

parent 11119adb
No related branches found
No related tags found
No related merge requests found
<?php
/*
/**
* @file
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
use Drupal\Core\Database\Database;
/**
* Implements hook_schema().
*/
function custom_table_creation_schema() {
$schema['cus_table_list'] = [
'description' => 'A record of which {users} have read which {node}s.',
......@@ -20,17 +19,17 @@ function custom_table_creation_schema() {
'description' => 'The {users}.uid that read the {node} nid.',
'type' => 'serial',
'not null' => TRUE,
],
],
'label' => [
'description' => 'Label',
'type' => 'varchar',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
],
'table_name' => [
'description' => 'The name of table',
'type' => 'varchar',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
......@@ -48,8 +47,7 @@ function custom_table_creation_schema() {
'default' => 0,
],
],
'primary key' => ['id'],
'primary key' => ['id'],
];
return $schema;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment