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
c3fe0c1a
Commit
c3fe0c1a
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: sql errors into migration scripts
parent
4b4360af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
+1
-0
1 addition, 0 deletions
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
with
1 addition
and
0 deletions
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
+
1
−
0
View file @
c3fe0c1a
...
...
@@ -101,6 +101,7 @@ ALTER TABLE llx_product MODIFY COLUMN fk_barcode_type INTEGER NULL DEFAULT NULL;
-- VPGSQL8.2 ALTER TABLE llx_product ALTER COLUMN fk_barcode_type SET DEFAULT NULL;
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
);
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