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
59234885
Commit
59234885
authored
9 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Added missing SQL statements + reordered them
parent
e1f2efee
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/3.8.0-3.9.0.sql
+12
-10
12 additions, 10 deletions
htdocs/install/mysql/migration/3.8.0-3.9.0.sql
with
12 additions
and
10 deletions
htdocs/install/mysql/migration/3.8.0-3.9.0.sql
+
12
−
10
View file @
59234885
...
...
@@ -69,17 +69,8 @@ ALTER TABLE llx_societe_rib MODIFY COLUMN code_banque varchar(128);
ALTER
TABLE
llx_contrat
ADD
COLUMN
ref_customer
varchar
(
30
);
ALTER
TABLE
llx_commande
ADD
COLUMN
fk_warehouse
integer
DEFAULT
NULL
after
fk_shipping_method
;
CREATE
TABLE
llx_product_pricerules
(
rowid
INT
PRIMARY
KEY
NOT
NULL
AUTO_INCREMENT
,
level
INT
NOT
NULL
,
-- Which price level is this rule for?
fk_level
INT
NOT
NULL
,
-- Price variations are made over price of X
var_percent
FLOAT
NOT
NULL
,
-- Price variation over based price
var_min_percent
FLOAT
NOT
NULL
-- Min price discount over general price
);
ALTER
TABLE
llx_ecm_directories
MODIFY
COLUMN
fullpath
varchar
(
750
);
ALTER
TABLE
llx_ecm_directories
DROP
INDEX
idx_ecm_directories
;
ALTER
TABLE
llx_ecm_directories
ADD
UNIQUE
INDEX
uk_ecm_directories
(
label
,
fk_parent
,
entity
);
--ALTER TABLE llx_ecm_directories ADD UNIQUE INDEX uk_ecm_directories_fullpath(fullpath);
...
...
@@ -263,4 +254,15 @@ ALTER TABLE llx_budget_lines ADD CONSTRAINT fk_budget_lines_budget FOREIGN KEY (
ALTER
TABLE
llx_c_typent
ADD
COLUMN
position
integer
NOT
NULL
DEFAULT
0
;
ALTER
TABLE
llx_c_forme_juridique
ADD
COLUMN
position
integer
NOT
NULL
DEFAULT
0
;
ALTER
TABLE
llx_c_type_fees
ADD
COLUMN
position
integer
NOT
NULL
DEFAULT
0
;
ALTER
TABLE
llx_product
ADD
COLUMN
price_autogen
TINYINT
(
1
)
DEFAULT
0
;
\ No newline at end of file
-- NEW Level multiprice generator based on per cent variations over base price
CREATE
TABLE
llx_product_pricerules
(
rowid
INT
PRIMARY
KEY
NOT
NULL
AUTO_INCREMENT
,
level
INT
NOT
NULL
,
-- Which price level is this rule for?
fk_level
INT
NOT
NULL
,
-- Price variations are made over price of X
var_percent
FLOAT
NOT
NULL
,
-- Price variation over based price
var_min_percent
FLOAT
NOT
NULL
-- Min price discount over general price
);
ALTER
TABLE
llx_product
ADD
COLUMN
price_autogen
TINYINT
(
1
)
DEFAULT
0
;
ALTER
TABLE
llx_product_pricerules
ADD
CONSTRAINT
unique_level
UNIQUE
(
level
);
\ No newline at end of file
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