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
dbaea6fa
Commit
dbaea6fa
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Add clean sql requests into repair.sql
parent
6ac7e225
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
+5
-0
5 additions, 0 deletions
htdocs/install/mysql/migration/repair.sql
with
5 additions
and
0 deletions
htdocs/install/mysql/migration/repair.sql
+
5
−
0
View file @
dbaea6fa
...
...
@@ -6,6 +6,11 @@
-- Requests to clean corrupted database
-- delete foreign key that should never exists
ALTER
TABLE
llx_propal
DROP
FOREIGN
KEY
fk_propal_fk_currency
;
ALTER
TABLE
llx_commande
DROP
FOREIGN
KEY
fk_commande_fk_currency
;
ALTER
TABLE
llx_facture
DROP
FOREIGN
KEY
fk_facture_fk_currency
;
delete
from
llx_facturedet
where
fk_facture
in
(
select
rowid
from
llx_facture
where
facnumber
in
(
'(PROV)'
,
'ErrorBadMask'
));
delete
from
llx_facture
where
facnumber
in
(
'(PROV)'
,
'ErrorBadMask'
);
delete
from
llx_commandedet
where
fk_commande
in
(
select
rowid
from
llx_commande
where
ref
in
(
'(PROV)'
,
'ErrorBadMask'
));
...
...
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