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
47688668
Commit
47688668
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: add repair for broken projects
parent
f4bab2f6
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
+10
-0
10 additions, 0 deletions
htdocs/install/mysql/migration/repair.sql
with
10 additions
and
0 deletions
htdocs/install/mysql/migration/repair.sql
+
10
−
0
View file @
47688668
...
...
@@ -23,3 +23,13 @@ update llx_deplacement set dated='2010-01-01' where dated < '2000-01-01';
update
llx_cotisation
set
fk_bank
=
null
where
fk_bank
not
in
(
select
rowid
from
llx_bank
);
update
llx_propal
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_commande
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_facture
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_commande_fournisseur
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_contrat
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_deplacement
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_facture_fourn
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_facture_rec
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_fichinter
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_projet_task
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
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