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
920c0596
Commit
920c0596
authored
17 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: erreur lors de la migration
parent
84accb18
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mysql/migration/2.2.0-2.4.0.sql
+1
-0
1 addition, 0 deletions
mysql/migration/2.2.0-2.4.0.sql
with
1 addition
and
0 deletions
mysql/migration/2.2.0-2.4.0.sql
+
1
−
0
View file @
920c0596
...
@@ -73,6 +73,7 @@ alter table llx_expedition add column fk_soc integer NOT NULL after ref;
...
@@ -73,6 +73,7 @@ alter table llx_expedition add column fk_soc integer NOT NULL after ref;
alter
table
llx_expedition
add
column
fk_adresse_livraison
integer
DEFAULT
NULL
after
date_expedition
;
alter
table
llx_expedition
add
column
fk_adresse_livraison
integer
DEFAULT
NULL
after
date_expedition
;
-- V4.1 UPDATE llx_expedition as e SET e.fk_soc = (SELECT c.fk_soc FROM llx_commande AS c WHERE e.fk_commande = c.rowid);
-- V4.1 UPDATE llx_expedition as e SET e.fk_soc = (SELECT c.fk_soc FROM llx_commande AS c WHERE e.fk_commande = c.rowid);
-- V4.1 UPDATE llx_expedition as e SET e.fk_adresse_livraison = (SELECT c.fk_adresse_livraison FROM llx_commande AS c WHERE e.fk_commande = c.rowid);
-- V4.1 UPDATE llx_expedition as e SET e.fk_adresse_livraison = (SELECT c.fk_adresse_livraison FROM llx_commande AS c WHERE e.fk_commande = c.rowid);
update
llx_expedition
set
fk_adresse_livraison
=
NULL
where
fk_adresse_livraison
=
0
;
ALTER
TABLE
llx_expedition
ADD
INDEX
idx_expedition_fk_soc
(
fk_soc
);
ALTER
TABLE
llx_expedition
ADD
INDEX
idx_expedition_fk_soc
(
fk_soc
);
ALTER
TABLE
llx_expedition
ADD
INDEX
idx_expedition_fk_user_author
(
fk_user_author
);
ALTER
TABLE
llx_expedition
ADD
INDEX
idx_expedition_fk_user_author
(
fk_user_author
);
...
...
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