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
cb4e0233
Commit
cb4e0233
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix orphelins
parent
24cad7cf
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/repair.sql
+4
-0
4 additions, 0 deletions
htdocs/install/mysql/migration/repair.sql
with
4 additions
and
0 deletions
htdocs/install/mysql/migration/repair.sql
+
4
−
0
View file @
cb4e0233
...
...
@@ -143,6 +143,10 @@ delete from llx_element_element where sourcetype='facture' and fk_source not in
delete
from
llx_element_element
where
sourcetype
=
'commande'
and
fk_source
not
in
(
select
rowid
from
llx_commande
);
-- Fix: delete orphelin actioncomm_resources
delete
from
llx_actioncomm_resources
where
fk_actioncomm
not
in
(
select
id
from
llx_actioncomm
);
UPDATE
llx_product
SET
canvas
=
NULL
where
canvas
=
'default@product'
;
UPDATE
llx_product
SET
canvas
=
NULL
where
canvas
=
'service@product'
;
...
...
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