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
96e05869
Commit
96e05869
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: enhance cleaning of database
parent
ddb31d4b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/migration/3.1.0-3.2.0.sql
+4
-0
4 additions, 0 deletions
htdocs/install/mysql/migration/3.1.0-3.2.0.sql
htdocs/install/mysql/migration/repair.sql
+4
-0
4 additions, 0 deletions
htdocs/install/mysql/migration/repair.sql
with
8 additions
and
0 deletions
htdocs/install/mysql/migration/3.1.0-3.2.0.sql
+
4
−
0
View file @
96e05869
...
@@ -30,7 +30,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid
...
@@ -30,7 +30,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid
update
llx_fichinter
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
);
update
llx_projet_task
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_propal
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_propal
set
fk_user_valid
=
null
where
fk_user_valid
not
in
(
select
rowid
from
llx_user
);
update
llx_propal
set
fk_user_cloture
=
null
where
fk_user_cloture
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_valid
=
null
where
fk_user_valid
not
in
(
select
rowid
from
llx_user
);
ALTER
TABLE
llx_extrafields
ADD
COLUMN
TYPE
VARCHAR
(
8
);
ALTER
TABLE
llx_extrafields
ADD
COLUMN
TYPE
VARCHAR
(
8
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/migration/repair.sql
+
4
−
0
View file @
96e05869
...
@@ -34,7 +34,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid
...
@@ -34,7 +34,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid
update
llx_fichinter
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
);
update
llx_projet_task
set
fk_projet
=
null
where
fk_projet
not
in
(
select
rowid
from
llx_projet
);
update
llx_propal
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_propal
set
fk_user_valid
=
null
where
fk_user_valid
not
in
(
select
rowid
from
llx_user
);
update
llx_propal
set
fk_user_cloture
=
null
where
fk_user_cloture
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_author
=
null
where
fk_user_author
not
in
(
select
rowid
from
llx_user
);
update
llx_commande
set
fk_user_valid
=
null
where
fk_user_valid
not
in
(
select
rowid
from
llx_user
);
delete
from
llx_societe_extrafields
where
fk_object
not
in
(
select
rowid
from
llx_societe
);
delete
from
llx_societe_extrafields
where
fk_object
not
in
(
select
rowid
from
llx_societe
);
delete
from
llx_adherent_extrafields
where
fk_object
not
in
(
select
rowid
from
llx_adherent
);
delete
from
llx_adherent_extrafields
where
fk_object
not
in
(
select
rowid
from
llx_adherent
);
...
...
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