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
3d9e26df
Commit
3d9e26df
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: add constraint
parent
2cb77479
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/migration/2.7.0-2.8.0.sql
+12
-0
12 additions, 0 deletions
htdocs/install/mysql/migration/2.7.0-2.8.0.sql
htdocs/install/mysql/tables/llx_projet_task.key.sql
+8
-1
8 additions, 1 deletion
htdocs/install/mysql/tables/llx_projet_task.key.sql
with
20 additions
and
1 deletion
htdocs/install/mysql/migration/2.7.0-2.8.0.sql
+
12
−
0
View file @
3d9e26df
...
...
@@ -131,6 +131,18 @@ ALTER TABLE llx_projet_task CHANGE note note_private text;
ALTER
TABLE
llx_projet_task
ADD
COLUMN
note_public
text
AFTER
note_private
;
ALTER
TABLE
llx_projet_task
ADD
COLUMN
rang
integer
DEFAULT
0
AFTER
note_public
;
-- Delete old key
ALTER
TABLE
llx_projet_task
DROP
INDEX
fk_projet
;
ALTER
TABLE
llx_projet_task
DROP
INDEX
fk_user_creat
;
ALTER
TABLE
llx_projet_task
DROP
INDEX
statut
;
-- Add new key
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_projet
(
fk_projet
);
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_user_creat
(
fk_user_creat
);
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_user_valid
(
fk_user_valid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_projet
FOREIGN
KEY
(
fk_projet
)
REFERENCES
llx_projet
(
rowid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_user_creat
FOREIGN
KEY
(
fk_user_creat
)
REFERENCES
llx_user
(
rowid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_user_valid
FOREIGN
KEY
(
fk_user_valid
)
REFERENCES
llx_user
(
rowid
);
ALTER
TABLE
llx_element_contact
DROP
FOREIGN
KEY
fk_element_contact_fk_c_type_contact
;
ALTER
TABLE
llx_element_contact
DROP
INDEX
fk_element_contact_fk_c_type_contact
;
UPDATE
llx_c_type_contact
SET
rowid
=
'160'
WHERE
rowid
=
'80'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/tables/llx_projet_task.key.sql
+
8
−
1
View file @
3d9e26df
-- ============================================================================
-- Copyright (C) 2009 Laurent Destailleur <eldy@users.sourceforge.net>
-- Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
...
...
@@ -20,4 +21,10 @@
-- ============================================================================
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_projet
FOREIGN
KEY
(
fk_projet
)
REFERENCES
llx_projet
(
rowid
);
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_projet
(
fk_projet
);
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_user_creat
(
fk_user_creat
);
ALTER
TABLE
llx_projet_task
ADD
INDEX
idx_projet_task_fk_user_valid
(
fk_user_valid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_projet
FOREIGN
KEY
(
fk_projet
)
REFERENCES
llx_projet
(
rowid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_user_creat
FOREIGN
KEY
(
fk_user_creat
)
REFERENCES
llx_user
(
rowid
);
ALTER
TABLE
llx_projet_task
ADD
CONSTRAINT
fk_projet_task_fk_user_valid
FOREIGN
KEY
(
fk_user_valid
)
REFERENCES
llx_user
(
rowid
);
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