Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
a5749971
Commit
a5749971
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Qual: Add unique keys constraints on barcode.
parent
82c2ef97
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/tables/llx_product.key.sql
+3
-0
3 additions, 0 deletions
htdocs/install/mysql/tables/llx_product.key.sql
htdocs/install/mysql/tables/llx_societe.key.sql
+6
-2
6 additions, 2 deletions
htdocs/install/mysql/tables/llx_societe.key.sql
with
9 additions
and
2 deletions
htdocs/install/mysql/tables/llx_product.key.sql
+
3
−
0
View file @
a5749971
...
...
@@ -25,3 +25,6 @@ ALTER TABLE llx_product ADD INDEX idx_product_label (label);
ALTER
TABLE
llx_product
ADD
INDEX
idx_product_barcode
(
barcode
);
ALTER
TABLE
llx_product
ADD
INDEX
idx_product_import_key
(
import_key
);
ALTER
TABLE
llx_product
ADD
INDEX
idx_product_seuil_stock_alerte
(
seuil_stock_alerte
);
ALTER
TABLE
llx_product
ADD
UNIQUE
INDEX
uk_product_barcode
(
barcode
,
fk_barcode_type
,
entity
);
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/tables/llx_societe.key.sql
+
6
−
2
View file @
a5749971
...
...
@@ -17,10 +17,14 @@
-- ===================================================================
ALTER
TABLE
llx_societe
ADD
UNIQUE
uk_societe_prefix_comm
(
prefix_comm
,
entity
);
ALTER
TABLE
llx_societe
ADD
UNIQUE
uk_societe_code_client
(
code_client
,
entity
);
ALTER
TABLE
llx_societe
ADD
UNIQUE
INDEX
uk_societe_prefix_comm
(
prefix_comm
,
entity
);
ALTER
TABLE
llx_societe
ADD
UNIQUE
INDEX
uk_societe_code_client
(
code_client
,
entity
);
ALTER
TABLE
llx_societe
ADD
UNIQUE
INDEX
uk_societe_code_fournisseur
(
code_fournisseur
,
entity
);
ALTER
TABLE
llx_societe
ADD
UNIQUE
INDEX
uk_societe_barcode
(
barcode
,
fk_barcode_type
,
entity
);
ALTER
TABLE
llx_societe
ADD
INDEX
idx_societe_user_creat
(
fk_user_creat
);
ALTER
TABLE
llx_societe
ADD
INDEX
idx_societe_user_modif
(
fk_user_modif
);
-- ALTER TABLE llx_societe ADD FOREIGN KEY fk_prospectlevel llx_c_prospectlevel(code);
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