Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
custom_table_creation
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
custom_table_creation
Commits
047c60be
Commit
047c60be
authored
7 years ago
by
amit_singhal
Browse files
Options
Downloads
Patches
Plain Diff
coding standards
parent
11119adb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
custom_table_creation.install
+6
-8
6 additions, 8 deletions
custom_table_creation.install
with
6 additions
and
8 deletions
custom_table_creation.install
+
6
−
8
View file @
047c60be
<?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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment