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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
11eb7de5
Commit
11eb7de5
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Try to clean sql to avoid mysql bug
parent
ac2c7c4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
+5
-3
5 additions, 3 deletions
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
with
5 additions
and
3 deletions
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
+
5
−
3
View file @
11eb7de5
...
...
@@ -183,9 +183,6 @@ UPDATE llx_product SET fk_barcode_type = NULL WHERE fk_barcode_type = 0;
ALTER
TABLE
llx_product
ADD
INDEX
idx_product_fk_barcode_type
(
fk_barcode_type
);
UPDATE
llx_product
SET
fk_barcode_type
=
NULL
WHERE
fk_barcode_type
NOT
IN
(
SELECT
rowid
from
llx_c_barcode_type
);
-- This request make mysql drop (mysql bug):
ALTER
TABLE
llx_product
ADD
CONSTRAINT
fk_product_barcode_type
FOREIGN
KEY
(
fk_barcode_type
)
REFERENCES
llx_c_barcode_type
(
rowid
);
-- Added missing relations of llx_product_price
-- fk_user_author
...
...
@@ -1130,3 +1127,8 @@ ALTER TABLE llx_commande_fournisseur MODIFY COLUMN ref_supplier VARCHAR(255);
ALTER
TABLE
llx_facture_fourn
MODIFY
COLUMN
ref
VARCHAR
(
255
);
ALTER
TABLE
llx_facture_fourn
MODIFY
COLUMN
ref_ext
VARCHAR
(
255
);
ALTER
TABLE
llx_facture_fourn
MODIFY
COLUMN
ref_supplier
VARCHAR
(
255
);
-- This request make mysql drop (mysql bug, so we add it at end):
--ALTER TABLE llx_product ADD CONSTRAINT fk_product_barcode_type FOREIGN KEY (fk_barcode_type) REFERENCES llx_c_barcode_type(rowid);
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