Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
file_de_duplicator
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
file_de_duplicator
Commits
3a9230ea
Commit
3a9230ea
authored
1 month ago
by
Junaid
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3501489
by szato: Error on install - schema error, DB table not created
parent
ebb3d827
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
file_de_duplicator.install
+11
-2
11 additions, 2 deletions
file_de_duplicator.install
with
11 additions
and
2 deletions
file_de_duplicator.install
+
11
−
2
View file @
3a9230ea
<?php
/**
* @file
* Install, update and uninstall functions for the file_de_duplicator module.
*/
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* Implements hook_schema().
*/
function
file_de_duplicator_schema
()
{
$schema
[
'duplicate_files'
]
=
array
(
$schema
[
'duplicate_files'
]
=
[
'description'
=>
'Map of duplicate files to originals.'
,
'fields'
=>
[
'fid'
=>
[
'description'
=>
'File ID of the duplicate'
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
],
'original_fid'
=>
[
'description'
=>
'File ID of the original'
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
],
'exact'
=>
[
'description'
=>
'Whether exact duplicate'
,
...
...
@@ -32,7 +41,7 @@ function file_de_duplicator_schema() {
],
],
'primary key'
=>
[
'fid'
,
'original_fid'
],
)
;
]
;
return
$schema
;
}
...
...
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